|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eso.fits.FitsWCS
public class FitsWCS
FitsWCS class maps FITS WCS keywords to internal representatios and provides basic transformations. The transformations are described in Greisen & Calabretta (2002, A&A 395, 1061) for the basic representation and in Calabretta & Greisen (2002, A&A 395, 1077) for transformations. Note: the current implementation supports only the following non-linear transformations: TAN, STG, and ARC. Note: Rotations defined by the CROTAi keyword are not applied! Warning: The current implementation is experimental and should not be used for production. It will fail for none trivial headers.
Field Summary | |
---|---|
protected double[] |
amdx
|
protected double[] |
amdy
|
static int |
ARC
|
protected double[] |
cdelt
|
protected double[][] |
cdMatrix
|
protected int[] |
cproj
|
protected double[] |
crota
|
protected double[] |
crpix
|
protected double[] |
crval
|
protected java.lang.String[] |
ctype
|
protected double[] |
fip
|
protected boolean |
hasCdMatrix
|
protected boolean |
hasPcMatrix
|
static int |
LIN
|
protected int |
nax
|
static int |
NOT
|
protected double[][] |
pcMatrix
|
static int |
STG
|
static int |
TAN
|
protected double[] |
thp
|
protected int |
type
|
Constructor Summary | |
---|---|
FitsWCS()
Default constructor for FitsWCS class. |
|
FitsWCS(FitsHeader header)
Constructor for FitsWCS class given a FITS header with associated data unit as a file. |
|
FitsWCS(FitsHeader header,
char ver)
Constructor for FitsWCS class given a FITS header with associated data unit as a file. |
|
FitsWCS(int nax)
Constructor for FitsWCS given number of axes |
Method Summary | |
---|---|
int |
getType(int nax)
get projection type of WCS transformation of given axis. |
void |
setHeader(FitsHeader header,
char ver)
Define FITS header for FitsWCS object. |
double[] |
toPixel(double[] wcs)
Compute pixel coordinates from a set of World Coordinates. |
double[] |
toWCS(double[] pix)
Compute World Coordinates from pixel coordinates. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NOT
public static final int LIN
public static final int TAN
public static final int ARC
public static final int STG
protected int type
protected int nax
protected int[] cproj
protected double[] crpix
protected double[] crval
protected double[] cdelt
protected double[] crota
protected double[] fip
protected double[] thp
protected java.lang.String[] ctype
protected double[][] cdMatrix
protected double[][] pcMatrix
protected boolean hasPcMatrix
protected boolean hasCdMatrix
protected double[] amdx
protected double[] amdy
Constructor Detail |
---|
public FitsWCS()
public FitsWCS(FitsHeader header)
header
- FitsHeader object with the image headerpublic FitsWCS(FitsHeader header, char ver)
header
- FitsHeader object with the image headerver
- version of WCS i.e. ' ' or 'A'..'Z'public FitsWCS(int nax)
nax
- Number of axes in data matrixMethod Detail |
---|
public void setHeader(FitsHeader header, char ver)
header
- FitsHeader object with the image headerver
- version of WCS i.e. ' ' or 'A'..'Z'public int getType(int nax)
nax
- no. of axis to enquire (0..naxis-1)
public double[] toWCS(double[] pix)
pix
- Array with pixel coordinates
public double[] toPixel(double[] wcs)
wcs
- Array with World Coordinates
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |