|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object skyview.geometry.Transformer skyview.geometry.Converter skyview.geometry.WCS
public class WCS
A World Coordinate System defines a translation between celestial and pixel coordinates. Note that in many cases FITS keywords describe the transformations in the other direction (from pixel to celestial) but we follow the convention that forward transformations are from celestial to pixel. Given a WCS object, wcs, the pixel-celestial coordinates trasnformation is simply wcs.inverse();
Constructor Summary | |
---|---|
WCS(CoordinateSystem csys,
Projection proj,
Scaler scale)
Create a simple WCS given a scaler, CoordinateSystem and Projection. |
|
WCS(Header h)
Create the WCS using the definition given in the FITS header. |
|
WCS(Header h,
int lonAxis,
int latAxis)
Let the user say which axes to use |
Method Summary | |
---|---|
double |
getScale()
Get the nominal scale of the WCS. |
static void |
updateHeader(Header h,
Scaler s,
double[] crval,
java.lang.String projString,
java.lang.String coordString)
Write FITS WCS keywords given key values. |
Methods inherited from class skyview.geometry.Converter |
---|
add, debug, getDescription, getInputDimension, getName, getOutputDimension, inverse, isInverse, transform, transform |
Methods inherited from class skyview.geometry.Transformer |
---|
transform |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WCS(CoordinateSystem csys, Projection proj, Scaler scale) throws TransformationException
TransformationException
public WCS(Header h) throws TransformationException
TransformationException
public WCS(Header h, int lonAxis, int latAxis) throws TransformationException
TransformationException
Method Detail |
---|
public double getScale()
public static void updateHeader(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 of the coordinate system.
E.g., J2000, B1950, Galactic, "E2000", "H2020.10375".
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |