|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.convert.SkySystem
public abstract class SkySystem
Represents a sky coordinate system.
Conversions all go via FK5 J2000.0, I think. SLALIB (Pal) is used to do the work. In some cases an epoch is considered. No opportunity is given for using an equinox value. I am not an expert on sky coordinate systems, and I think there may be subtleties which I'm not addressing accurately here.
Constructor Summary | |
---|---|
protected |
SkySystem(String name,
String description,
String descrip1,
String descrip2,
String colname1,
String colname2)
Constructor. |
Method Summary | |
---|---|
abstract double[] |
fromFK5(double c1,
double c2,
double epoch)
Converts from FK5 J2000.0 into this system. |
String[] |
getCoordinateColumnNames()
Returns labels suitable for use as column names in this system. |
String[] |
getCoordinateDescriptions()
Returns a full description of each coordinate in this system. |
String[] |
getCoordinateNames()
Returns names of the coordinates in this system. |
String |
getDescription()
Returns a short description of this system. |
static SkySystem[] |
getKnownSystems()
Returns an array of all the systems known. |
String |
getName()
Returns the name of this system. |
static SkySystem |
getSystemFor(String sysName)
Returns a system which matches a given string. |
static String |
getSystemUsage()
Returns a snippet of XML which describes the systems and their meanings. |
abstract double[] |
toFK5(double c1,
double c2,
double epoch)
Converts to FK5 J2000.0 from this system. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected SkySystem(String name, String description, String descrip1, String descrip2, String colname1, String colname2)
name
- short system namedescription
- a few words of descriptiondescrip1
- short description of first coordinatedescrip2
- short description of second coordinatecolname1
- label for first coordinate suitable for
use as column namecolname2
- label for second coordinate suitable for
use as column nameMethod Detail |
---|
public abstract double[] fromFK5(double c1, double c2, double epoch)
c1
- right ascension in FK5 (radians)c2
- declination in FK5 (radians)
public abstract double[] toFK5(double c1, double c2, double epoch)
c1
- first coordinate in this system (radians)c2
- second coordinate in this system (radians)
public String getName()
public String getDescription()
public String[] getCoordinateDescriptions()
public String[] getCoordinateNames()
public String[] getCoordinateColumnNames()
public String toString()
toString
in class Object
public static SkySystem[] getKnownSystems()
public static String getSystemUsage()
public static SkySystem getSystemFor(String sysName)
sysName
- name to match
IllegalArgumentException
- if sysName isn't a system name
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |