Coord
public abstract class SkyCoord extends java.lang.Object implements Coord
Modifier and Type | Class | Description |
---|---|---|
static class |
SkyCoord.SkyVariant |
Controls the interpretation of sky vectors, either fixed to the
surface of the unit sphere or not.
|
Modifier and Type | Method | Description |
---|---|---|
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.
|
inputToStorage
public Input[] getInputs()
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 writtenpublic 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 degreesCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.