public abstract class SkyCoord extends Object implements Coord
Modifier and Type | Class and 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 and Description |
---|---|
static SkyCoord |
createCoord(SkyCoord.SkyVariant variant,
boolean isRequired)
Factory method to create an instance of this class.
|
static InputMeta |
createRadiusInputMeta()
Returns an InputMeta for acquiring a radial distance.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
inputStorage
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 degreespublic static InputMeta createRadiusInputMeta()
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.