public class RowCoordinates extends Object
Modifier and Type | Field and Description |
---|---|
protected double |
equinox
Value of the equinox for world coordinates, if it is known
|
protected int |
equinoxCol
Index of a column containing the equnox for each row, or -1 if it is constant.
|
protected int |
idCol
The column containing the object id, or -1 if there isn't one
|
protected boolean |
isPix
True if using image coordinates
|
protected boolean |
isWcs
True if the table has RA and DEC coordinate columns
|
protected int |
xCol
The column index for the X or RA coordinate
|
protected int |
yCol
The column index for the Y or DEC coordinate
|
Constructor and Description |
---|
RowCoordinates()
This constructor should be used when there are no coordinate columns.
|
RowCoordinates(int xCol,
int yCol)
Create an object that will extract an ImageCoords object from a
row using the given x,y indexes.
|
RowCoordinates(int raCol,
int decCol,
double equinox)
Create an object that will extract a WorldCoords object from a
row using the given ra,dec indexes and the given equinox.
|
RowCoordinates(int raCol,
int decCol,
int equinoxCol)
Create an object that will extract a WorldCoords object from a
row using the given ra,dec and equinox indexes.
|
Modifier and Type | Method and Description |
---|---|
double |
equinox()
Return the equinox used for world coordinates
|
Coordinates |
getCoordinates(Vector row)
Return a Coordinates object for the given row vector, or null if not found
|
int |
getDecCol()
Return the column index for the DEC coordinate, or -1 if not known.
|
double |
getEquinox()
Return the value of the equinox for world coordinates, if it is known (default: 2000).
|
int |
getEquinoxCol()
Return the Index of a column containing the equnox for each row, or -1 if it is constant.
|
int |
getIdCol()
Return the column containing the object id, or -1 if there isn't one.
|
int |
getRaCol()
Return the column index for the RA coordinate, or -1 if not known.
|
int |
getXCol()
Return the column index for the X coordinate, or -1 if not known.
|
int |
getYCol()
Return the column index for the Y coordinate, or -1 if not known.
|
boolean |
hasCoordinates()
Return true if coordinate columns, such as (ra, dec), were defined
|
boolean |
isPix()
Return true if the catalog has X and Y columns (assumed to be image pixel coordinates)
|
boolean |
isWCS()
Return true if the catalog has RA and DEC coordinate columns
|
void |
setIdCol(int idCol)
Set the column containing the object id (-1 if there isn't one).
|
protected int idCol
protected int xCol
protected int yCol
protected boolean isWcs
protected double equinox
protected int equinoxCol
protected boolean isPix
public RowCoordinates(int raCol, int decCol, double equinox)
public RowCoordinates(int raCol, int decCol, int equinoxCol)
public RowCoordinates(int xCol, int yCol)
public RowCoordinates()
public boolean hasCoordinates()
public boolean isWCS()
public double equinox()
public boolean isPix()
public Coordinates getCoordinates(Vector row)
public int getXCol()
public int getYCol()
public int getRaCol()
public int getDecCol()
public double getEquinox()
public int getEquinoxCol()
public int getIdCol()
public void setIdCol(int idCol)
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.