uk.ac.starlink.ttools.plot2.layer
Class SkyVectorCoordSet

java.lang.Object
  extended by uk.ac.starlink.ttools.plot2.layer.SkyVectorCoordSet
All Implemented Interfaces:
MultiPointCoordSet

public class SkyVectorCoordSet
extends Object
implements MultiPointCoordSet

MultiPointCoordSet for vectors on the sky.

Since:
18 Feb 2013
Author:
Mark Taylor

Constructor Summary
SkyVectorCoordSet(boolean preMultCosLat)
          Constructor.
 
Method Summary
 Coord[] getCoords()
          Returns the coordinate definitions.
 int getPointCount()
          Returns the number of (non-central) data positions defined by this coord set.
 boolean readPoints(TupleSequence tseq, int icol, double[] xyz0, double[][] xyzExtras)
          Reads the non-central points from a appropriate span of columns in the current row of a supplied TupleSequence.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SkyVectorCoordSet

public SkyVectorCoordSet(boolean preMultCosLat)
Constructor.

Parameters:
preMultCosLat - true iff the user-supplied longitude values have been premultiplied by cos(latitude)
Method Detail

getCoords

public Coord[] getCoords()
Description copied from interface: MultiPointCoordSet
Returns the coordinate definitions.

Specified by:
getCoords in interface MultiPointCoordSet
Returns:
coords

getPointCount

public int getPointCount()
Description copied from interface: MultiPointCoordSet
Returns the number of (non-central) data positions defined by this coord set.

Specified by:
getPointCount in interface MultiPointCoordSet
Returns:
data position count

readPoints

public boolean readPoints(TupleSequence tseq,
                          int icol,
                          double[] xyz0,
                          double[][] xyzExtras)
Description copied from interface: MultiPointCoordSet
Reads the non-central points from a appropriate span of columns in the current row of a supplied TupleSequence. The central data position must be supplied as input. The icol value gives the column corresponding to the first coord of this coordinate set in the sequence; the following few columns are assumed to correspod 1:1 to the coords in this coord set.

Specified by:
readPoints in interface MultiPointCoordSet
Parameters:
tseq - tuple sequence, positioned at the row of interest
icol - index of column in the sequence corresponding to the first of the coordinates in this set
xyz0 - nDataDim-element array giving central data position
xyzExtras - [nPointCount][nDataDim]-shaped array into which the non-central data positions will be written
Returns:
true iff the conversion was successful


Copyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.