|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcds.astro.Astroframe
public abstract class Astroframe
This abstract class defines the required methods to instanciate the definition of a frame used for astronomical coordinates.
Field Summary | |
---|---|
double |
base_epoch
The defaut epoch, a constant which cannot be changed for a frame. |
byte |
ed_lat
Default edition of Latitude/Declination. |
byte |
ed_lon
Default edition of Longitude/Right Ascension. |
double |
epoch
The epoch, expressed in Julian Year. |
boolean |
hms
The sexagesimal representation of the longitude may be expressed in time unit. |
static java.lang.String |
IAUframes
List of valid 1-letter frames used in IAU designations |
double[][] |
ICRSmatrix
The conversion to ICRS, if it is a simple rotation. |
java.lang.String |
name
The name of the frame (normally assigned at instanciation) |
byte |
precision
The defaut precision (0=unknown, 3=1', 5=1"). |
Constructor Summary | |
---|---|
Astroframe()
|
Method Summary | |
---|---|
static Astroframe |
create(char sym)
Creation of an astroframe from a single char (J, B, G, etc) |
static Astroframe |
create(java.lang.String name)
Creation of an astroframe from the interpretation of a text |
boolean |
equals(char sym)
Creation of an astroframe from a single char (J, B, G, etc) |
boolean |
equals(java.lang.Object o)
Equality of frames -- name + epoch are assumed fully represent any frame. |
void |
fromICRS(Coo coo)
Conversion from ICRS. |
void |
fromICRS(double[] u6)
Conversion from ICRS with derivatives. |
double |
getEpoch()
Get the epoch |
int |
hashCode()
Compute the hashcode |
static boolean |
isIAU(char sym)
Verify letter is a valid frame. |
static Astroframe |
parse(Parsing txt)
Interpret a text representing a frame |
void |
setFrameEpoch(double epoch)
The setFrameEpoch method just set the default epoch. |
void |
setICRSmatrix()
Make the required verifications to install the ICRS matrix. |
void |
toICRS(Coo coo)
Conversion to ICRS. |
void |
toICRS(double[] u6)
Conversion to ICRS with derivatives. |
abstract double[][] |
toICRSmatrix()
Getting the matrix to rotate to ICRS system. |
java.lang.String |
toString()
Edition of an Astroframe. |
java.lang.String |
toString(double epoch)
Edition of an Astroframe with specification of the epoch. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static java.lang.String IAUframes
public java.lang.String name
public double base_epoch
public double epoch
public double[][] ICRSmatrix
public boolean hms
public byte precision
public byte ed_lon
Astroformat
among
DECIMAL, SEXA..., eventualled or'ed with SIGN_EDIT | ZERO_FILL
public byte ed_lat
Astroformat
among
DECIMAL, SEXA..., eventualled or'ed with SIGN_EDIT | ZERO_FILL
Constructor Detail |
---|
public Astroframe()
Method Detail |
---|
public static Astroframe parse(Parsing txt)
txt
- A text which contains a frame definition.
public static Astroframe create(java.lang.String name)
name
- the frame name + equinox + epoch
parse
public static final boolean isIAU(char sym)
sym
- the letter defining the frame.
(I=ICRS, J=J2000, B=B1950, E=EclJ2000, G=Gal, S=SuperGal)
public static Astroframe create(char sym)
sym
- the letter defining the frame.
(I=ICRS, J=J2000, B=B1950, E=EclJ2000, G=Gal, S=SuperGal)
public boolean equals(char sym)
sym
- the letter defining the frame.
(I=ICRS, J=J2000, B=B1950, E=EclJ2000, G=Gal, S=SuperGal)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(double epoch)
public final void setICRSmatrix()
public void setFrameEpoch(double epoch)
epoch
- epoch of the frame, in Julian year.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- Another object
public int hashCode()
hashCode
in class java.lang.Object
public abstract double[][] toICRSmatrix()
public void toICRS(Coo coo)
coo
- a Coordinate assumed to express a position in my frame.
On return, coo contains the corresponding coordinate in the ICRS.public void fromICRS(Coo coo)
coo
- a Coordinate assumed to express a position in ICRS.
On return, coo gives the corresponding coordinate in my frame.public void toICRS(double[] u6)
u6
- a 6-vector (phase vector) of position + velocity.
Velocity in Jyr-1
Note that u6 can restricted be a 3-vector.public void fromICRS(double[] u6)
u6
- a 6-vector (phase vector) of position + velocity.
Velocity in Jyr-1
Note that u6 can restricted be a 3-vector.public double getEpoch()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |