Package uk.ac.starlink.ttools.plot2.geom
Class SkySys
java.lang.Object
uk.ac.starlink.ttools.plot2.geom.SkySys
Sky coordinate system definition.
These are used to label the system in which sky coordinates are
supplied or required by SkyDataGeom so that a transformation can
be performed between them if required.
It is not an all-singing all-dancing toolkit for sky coordinate
system manipulation.
- Since:
- 20 Feb 2013
- Author:
- Mark Taylor
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionint[]
getCoordPair
(uk.ac.starlink.table.ValueInfo[] infos) Tries to guess at a pair of columns from a given selection that represent the longitude, latitude coordinates in this sky system.static SkySys[]
getKnownSystems
(boolean includeNull) Returns the list of known sky system instances.Returns the human-readable name for latitude.Returns the human-readable name for longitude.Returns the description for this system.Returns the name for this system.double[]
Returns a rotation matrix to convert coordinates in this system to J2000 equatorial coordinates.toString()
-
Field Details
-
EQUATORIAL
J2000 Equatorial sky system. -
GALACTIC
IAU 1958 Galactic sky system. -
SUPERGALACTIC
De Vaucouleurs supergalactic system. -
ECLIPTIC2000
Ecliptic system, based on conversion at data 2000.0. Probably not respectable.
-
-
Method Details
-
getSysName
Returns the name for this system.- Returns:
- name
-
getSysDescription
Returns the description for this system.- Returns:
- description
-
getLongitudeName
Returns the human-readable name for longitude.- Returns:
- longitude coordinate name
-
getLatitudeName
Returns the human-readable name for latitude.- Returns:
- latitude coordinate name
-
toEquatorial
public double[] toEquatorial()Returns a rotation matrix to convert coordinates in this system to J2000 equatorial coordinates.- Returns:
- 9-element rotation matrix
-
getCoordPair
public int[] getCoordPair(uk.ac.starlink.table.ValueInfo[] infos) Tries to guess at a pair of columns from a given selection that represent the longitude, latitude coordinates in this sky system.- Parameters:
infos
- array of metadata items for the available columns- Returns:
- 2-element array giving indexes into
infos
array of lon,lat items, or null if attempt fails
-
toString
-
getKnownSystems
Returns the list of known sky system instances.- Parameters:
includeNull
- true if null is to appear in the list- Returns:
- list of instances
-