public class WCS extends Converter
| Constructor and Description |
|---|
WCS(CoordinateSystem csys,
Projection proj,
Scaler scale)
Create a simple WCS given a scaler, CoordinateSystem and Projection.
|
WCS(nom.tam.fits.Header h)
Create the WCS using the definition given in the FITS header.
|
WCS(nom.tam.fits.Header h,
int lonAxis,
int latAxis)
Let the user say which axes to use
|
| Modifier and Type | Method and Description |
|---|---|
WCS |
addScaler(Scaler shift)
Return a new WCS from the existing WCS where we add a scale.
|
WCS |
approximate(double[] pix)
Approximate a WCS (which presumably includes a Distorter) with a
standard, locally correct, WCS.
|
void |
copyToHeader(nom.tam.fits.Header h) |
CoordinateSystem |
getCoordinateSystem()
Get the CoordinateSystem used in the WCS
|
Distorter |
getDistorter()
Get the plane distorter used in the projection (or null)
|
int[] |
getHeaderNaxis() |
Projection |
getProjection()
Get the projection used in the WCS
|
double |
getScale()
Get the nominal scale of the WCS.
|
Scaler |
getScaler()
Get the linear scaler used in the projection
|
void |
setHeaderNaxis(int[] newAxes) |
static void |
setPreferDSS(boolean flag) |
boolean |
standardWCS() |
void |
updateHeader(nom.tam.fits.Header h,
Scaler s,
double[] crval,
java.lang.String projString,
java.lang.String coordString)
Write FITS WCS keywords given key values.
|
add, check, debug, getDescription, getInputDimension, getName, getOutputDimension, inverse, isInverse, printElements, transformtransform, transformpublic WCS(CoordinateSystem csys, Projection proj, Scaler scale) throws TransformationException
TransformationExceptionpublic WCS(nom.tam.fits.Header h)
throws TransformationException
TransformationExceptionpublic WCS(nom.tam.fits.Header h,
int lonAxis,
int latAxis)
throws TransformationException
TransformationExceptionpublic WCS addScaler(Scaler shift) throws TransformationException
TransformationExceptionpublic static void setPreferDSS(boolean flag)
public CoordinateSystem getCoordinateSystem()
public Projection getProjection()
public Scaler getScaler()
public Distorter getDistorter()
public boolean standardWCS()
public int[] getHeaderNaxis()
public void setHeaderNaxis(int[] newAxes)
public double getScale()
public void updateHeader(nom.tam.fits.Header h,
Scaler s,
double[] crval,
java.lang.String projString,
java.lang.String coordString)
throws java.lang.Exception
h - The header to be updated.s - A Scaler giving the transformation between standard projection
coordinates and pixel/device coordinates.projString - A three character string giving the projection used.
Supported projections are: "Tan", "Sin", "Ait", "Car", "Zea".coordString - A string giving the coordinate system used. The first
character gives the general frame. For most frames the remainder of the
string gives the equinox o the coordinate system. E.g., J2000, B1950,
Galactic, "E2000", "H2020.10375".java.lang.Exceptionpublic void copyToHeader(nom.tam.fits.Header h)
throws nom.tam.fits.HeaderCardException
nom.tam.fits.HeaderCardExceptionpublic WCS approximate(double[] pix) throws TransformationException
pix - The pixel location we want to approximate around.TransformationException