public class SkyVectorCoordSet extends Object implements SkyMultiPointCoordSet
Constructor and Description |
---|
SkyVectorCoordSet(boolean preMultCosLat)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static MultiPointForm |
createForm()
Creates a MultiPointform that can plot vectors on the sky,
corresponding to this coordset.
|
Coord[] |
getCoords()
Returns the coordinate definitions.
|
int |
getPointCount()
Returns the number of (non-central) data positions defined by this
coord set.
|
boolean |
readPoints(Tuple tuple,
int icol,
double[] xyz0,
double unitInDegrees,
SkyDataGeom geom,
double[][] xyzExtras)
Reads the non-central points from a appropriate span of columns
in a supplied tuple.
|
double |
readSize(Tuple tuple,
int icol,
double[] xyz0)
Returns the characteristic size of the multi-point structure
represented by a supplied tuple.
|
public SkyVectorCoordSet(boolean preMultCosLat)
preMultCosLat
- true iff the user-supplied longitude values have
been premultiplied by cos(latitude)public Coord[] getCoords()
MultiPointCoordSet
getCoords
in interface MultiPointCoordSet
public int getPointCount()
MultiPointCoordSet
getPointCount
in interface MultiPointCoordSet
public double readSize(Tuple tuple, int icol, double[] xyz0)
SkyMultiPointCoordSet
readSize
in interface SkyMultiPointCoordSet
tuple
- tupleicol
- index of tuple field corresponding to
the first of the coordinates in this setxyz0
- nDataDim-element array giving central data positionpublic boolean readPoints(Tuple tuple, int icol, double[] xyz0, double unitInDegrees, SkyDataGeom geom, double[][] xyzExtras)
SkyMultiPointCoordSet
The central data position must be supplied as input.
The icExtra
value gives the column corresponding to
the first coord of this coordinate set in the sequence;
the following few columns are assumed to correspond 1:1 to
the coords in this coord set.
readPoints
in interface SkyMultiPointCoordSet
tuple
- tupleicol
- index of tuple field corresponding to
the first of the coordinates in this setxyz0
- nDataDim-element array giving central data positionunitInDegrees
- unit in degrees of the size-defining
tuple valuesgeom
- converter between tuple values and
data space coordinatesxyzExtras
- [nPointCount][nDataDim]-shaped array into which
the non-central data positions will be writtenpublic static MultiPointForm createForm()
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.