public abstract class SkySystem extends Object
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.
Modifier and Type | Field and Description |
---|---|
static SkySystem |
ECLIPTIC
Ecliptic sysem.
|
static SkySystem |
FK4
FK4 system.
|
static SkySystem |
FK5
FK5 system.
|
static SkySystem |
GALACTIC
Galactic system.
|
static SkySystem |
ICRS
ICRS system.
|
static SkySystem |
SUPERGALACTIC
Supergalactic system.
|
Modifier | Constructor and Description |
---|---|
protected |
SkySystem(String name,
String description,
String ucd1,
String ucd2,
String descrip1,
String descrip2,
String colname1,
String colname2)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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[] |
getCoordinateUcds()
Returns a suitable UCD1+ for each coordinate 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() |
public static final SkySystem ICRS
public static final SkySystem FK5
public static final SkySystem FK4
public static final SkySystem GALACTIC
public static final SkySystem SUPERGALACTIC
public static final SkySystem ECLIPTIC
protected SkySystem(String name, String description, String ucd1, String ucd2, String descrip1, String descrip2, String colname1, String colname2)
name
- short system namedescription
- a few words of descriptionucd1
- UCD1+ for first coordinateucd2
- UCD1+ for second coordinatedescrip1
- 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 namepublic 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[] getCoordinateUcds()
public String[] getCoordinateDescriptions()
public String[] getCoordinateNames()
public String[] getCoordinateColumnNames()
public static SkySystem[] getKnownSystems()
public static String getSystemUsage()
public static SkySystem getSystemFor(String sysName)
sysName
- name to matchIllegalArgumentException
- if sysName isn't a system nameCopyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.