|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcds.astro.Proj3
public class Proj3
Class defining the Mathematical Projections of the Celestial Sphere. This class contains only the mathematical projections --- WCS and Aladin projections are in a derived class.
The available projections are defined by the formulae, where
l,b = longitude and latitude theta = angle to center of projection x,y = projections (cartesian) along x (East) and y (North) r,phi = projections (polar) TAN / Standard = Gnomonic r = tan(theta) phi TAN2 / Stereographic r = 2.tan(theta/2) phi SIN / Orthographic r = sin(theta) phi SIN2 / Equal-area r = 2.sin(theta/2) phi ARC / Schmidt proj. r = theta phi AITOFF / Aitoff (equal area) if D = sqrt(0.5*(1+cos(b)cos(l/2))) x = 2cos(b)sin(l/2)/D y = sin(b)/D SANSON / Global Sinusoidal (equal area) x = l cos(b) y = b MERCATOR / with poles at infinity x = l y = atanh(b) LAMBERT / equal area projection x = l y = sin(b)
The typical usage of the Proj3 class consists in:
Field Summary | |
---|---|
static int |
AITOFF
|
static int |
ARC
|
protected double |
clat
|
protected double |
clon
|
static int |
LAMBERT
|
static int |
MERCATOR
|
static java.lang.String[] |
name
|
static int |
NONE
|
protected Coo |
point
The corresponding polar angles |
static int |
SANSON
|
static int |
SIN
|
static int |
SIN2
|
static int |
TAN
|
static int |
TAN2
|
protected byte |
type
|
protected double |
X
The values of the projections |
protected double |
Y
The values of the projections |
Constructor Summary | |
---|---|
Proj3(Coo centre)
Standard (TAN) projection. |
|
Proj3(double lon,
double lat)
Standard projection. |
|
Proj3(int type)
Projection at the Origin. |
|
Proj3(int type,
Coo centre)
Projection of a point on the sphere. |
|
Proj3(int type,
double lon,
double lat)
Creation of object used for Projections. |
|
Proj3(int type,
java.lang.String text)
Creation of object used for Projections from a String. |
Method Summary | |
---|---|
Coo |
getCoo()
Get the coordinate |
double |
getLat()
Get the latitude of the point on the projection. |
double |
getLon()
Get the longitude of the point on the projection. |
double |
getX()
Get only the X value of the projection. |
double |
getY()
Get the Y value of the projection |
boolean |
moveCenter(double X2,
double Y2)
Modify the projection center reflecting a translation in projection. |
boolean |
set(Coo coo)
Compute a projection from initial coordinates. |
boolean |
set(double px,
double py)
Reverse projection: compute the polar angle corresponding to (x,y) Rem: Method was called computeAngles in a previous version. |
java.lang.String |
toString()
Returns a definition of this projection |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected byte type
protected double clon
protected double clat
protected double X
protected double Y
protected Coo point
public static final int NONE
public static final int TAN
public static final int TAN2
public static final int SIN
public static final int SIN2
public static final int ARC
public static final int AITOFF
public static final int SANSON
public static final int MERCATOR
public static final int LAMBERT
public static final java.lang.String[] name
Constructor Detail |
---|
public Proj3(Coo centre)
centre
- Point defining the center of projection.
(coordinates of the tangent point, expressed in degrees).public Proj3(int type, Coo centre)
type
- projection type -- default (standard) = TANcentre
- Point defining the center of projection.
(coordinates of the tangent point, expressed in degrees).public Proj3(int type, double lon, double lat)
type
- projection type -- default (standard) = TANlon
- longitude of the center of projection.
(coordinates of the tangent point, expressed in degrees).lat
- latitude of the center of projection.
(coordinates of the tangent point, expressed in degrees).public Proj3(int type, java.lang.String text) throws java.text.ParseException
type
- projection typetext
- the center in a string
java.text.ParseException
public Proj3(int type)
type
- projection typepublic Proj3(double lon, double lat)
lon
- longitude of the center of projection.
(coordinates of the tangent point)lat
- latitude of the center of projection.
(coordinates of the tangent point)Method Detail |
---|
public final double getX()
public final double getY()
public final Coo getCoo()
public final double getLon()
public final double getLat()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean set(Coo coo)
coo
- coordinates (lon + lat)
public boolean set(double px, double py)
px
- x projection valuespy
- y projection values
public boolean moveCenter(double X2, double Y2)
X2
- New X-position of current locationY2
- New Y-position of current location
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |