|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot2.data.SkyCoord
public abstract class SkyCoord
Coord implementation for sky positions. To the user these look like (longitude, latitude) pairs, but they are stored as (x,y,z) triples. This class exists in two variants: for surface the vectors are normalised to a magnitude of 1, so that they all fall on the centre of the unit sphere. For volume, that constraint does not apply.
Nested Class Summary | |
---|---|
static class |
SkyCoord.SkyVariant
Controls the interpretation of sky vectors, either fixed to the surface of the unit sphere or not. |
Method Summary | |
---|---|
static SkyCoord |
createCoord(SkyCoord.SkyVariant variant,
boolean isRequired)
Factory method to create an instance of this class. |
Input[] |
getInputs()
Returns specifications of the one or more input values the user supplies to provide the data values for this coord. |
StorageType |
getStorageType()
Returns a code indicating how the quantity defined by this object is stored internally and presented to the plotting classes. |
boolean |
isRequired()
Indicates whether this item must have a non-blank value in order for a plot to be possible. |
static double[] |
lonLatDegreesToDouble3(double lonDeg,
double latDeg)
Converts a longitude, latitude pair into a normalised 3-vector. |
abstract boolean |
readSkyCoord(Tuple tuple,
int icol,
double[] v3)
Reads a sky vector value from an appropriate column in the current row of a given Tuple. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface uk.ac.starlink.ttools.plot2.data.Coord |
---|
inputToStorage |
Method Detail |
---|
public Input[] getInputs()
Coord
getInputs
in interface Coord
public StorageType getStorageType()
Coord
getStorageType
in interface Coord
public boolean isRequired()
Coord
isRequired
in interface Coord
public abstract boolean readSkyCoord(Tuple tuple, int icol, double[] v3)
tuple
- tupleicol
- index of field in tuple corresponding to this Coordv3
- 3-element vector into which the (x,y,z) sky position
will be written
public static SkyCoord createCoord(SkyCoord.SkyVariant variant, boolean isRequired)
variant
- type of sky coordinatesisRequired
- true if this coordinate is required for plottingpublic static double[] lonLatDegreesToDouble3(double lonDeg, double latDeg)
lonDeg
- longitude in degreeslatDeg
- latitude in degrees
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |