public abstract class HealpixDataGeom extends Object implements DataGeom
In general you should use the provided factory methods to
instantiate this abstract class. If you want to implement a
concrete subclass, make sure you implement the methods requred
Equality
.
Modifier and Type | Field and Description |
---|---|
static HealpixDataGeom |
DUMMY_INSTANCE
Placeholder instance.
|
static LongCoord |
HEALPIX_COORD
Coordinate for HEALPix pixel index.
|
Modifier and Type | Method and Description |
---|---|
static HealpixDataGeom |
createGeom(int level,
boolean isNest,
SkySys userSys,
SkySys viewSys)
Creates a data geom with input user data in one sky system and
output data coordinates in another sky system.
|
boolean |
equals(Object o) |
int |
getDataDimCount()
Returns 3.
|
Coord[] |
getPosCoords()
Returns the definitions for the user-supplied coordinates
that indicate plot positions.
|
String |
getVariantName()
Returns a label for this DataGeom.
|
int |
hashCode() |
boolean |
readDataPos(Tuple tuple,
int icol,
double[] dpos)
Determines the positional coordinates in data space for a supplied tuple.
|
public static final LongCoord HEALPIX_COORD
public static final HealpixDataGeom DUMMY_INSTANCE
public int getDataDimCount()
getDataDimCount
in interface DataGeom
public String getVariantName()
DataGeom
getVariantName
in interface DataGeom
public Coord[] getPosCoords()
DataGeom
getPosCoords
in interface DataGeom
public boolean readDataPos(Tuple tuple, int icol, double[] dpos)
DataGeom
A parameter supplies the index of the field in the tuple
at which the positional coordinate(s) can be found.
Each position is represented by DataGeom.getPosCoords()
columns of
the tuple.
By convention positions are at the start of the tuple,
so if there is one position in the tuple it will be at icol=0,
and there are multiple positions the N'th one will be at
icol=N*getPosCoords().
An array of (at least) DataGeom.getDataDimCount()
elements is
supplied, and on success the data space coordinate values
are written into it.
readDataPos
in interface DataGeom
tuple
- coordinate tupleicol
- column index in tuple
at which the
positional information startsdpos
- array into which data space coordinates are writtenpublic static HealpixDataGeom createGeom(int level, boolean isNest, SkySys userSys, SkySys viewSys)
level
- healpix level (log2(nside))userSys
- sky system in which user data is supplied, may be nullviewSys
- sky system in which the plot is viewed, may be nullCopyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.