org.eso.fits
Class FitsWCS

java.lang.Object
  extended by org.eso.fits.FitsWCS

public class FitsWCS
extends Object

FitsData class represents a FITS data unit

Version:
$Revision: 1.3 $ $Date: 2003/04/08 14:54:31 $
Author:
P.Grosbol, DMD/ESO,

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  String[] ctype
           
protected  boolean hasCdMatrix
           
protected  boolean hasPcMatrix
           
static int LIN
           
protected  int nax
           
protected  double[][] pcMatrix
           
static int TAN
           
protected  int type
           
 
Constructor Summary
FitsWCS()
          Default constructor for FitsWCS class.
FitsWCS(FitsHeader header)
          Constructor for FitsData class given a FITS header with associated data unit as a file.
FitsWCS(FitsHeader header, char ver)
          Constructor for FitsData class given a FITS header with associated data unit as a file.
FitsWCS(int nax)
          Constructor for FitsData class given a No.
 
Method Summary
 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[] p)
          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

LIN

public static final int LIN
See Also:
Constant Field Values

TAN

public static final int TAN
See Also:
Constant Field Values

ARC

public static final int ARC
See Also:
Constant Field Values

type

protected int type

nax

protected int nax

cproj

protected int[] cproj

crpix

protected double[] crpix

crval

protected double[] crval

cdelt

protected double[] cdelt

crota

protected double[] crota

ctype

protected String[] ctype

cdMatrix

protected double[][] cdMatrix

pcMatrix

protected double[][] pcMatrix

hasPcMatrix

protected boolean hasPcMatrix

hasCdMatrix

protected boolean hasCdMatrix

amdx

protected double[] amdx

amdy

protected double[] amdy
Constructor Detail

FitsWCS

public FitsWCS()
Default constructor for FitsWCS class.


FitsWCS

public FitsWCS(FitsHeader header)
Constructor for FitsData class given a FITS header with associated data unit as a file.

Parameters:
header - FitsHeader object with the image header

FitsWCS

public FitsWCS(FitsHeader header,
               char ver)
Constructor for FitsData class given a FITS header with associated data unit as a file.

Parameters:
header - FitsHeader object with the image header
ver - version of WCS i.e. ' ' or 'A'..'Z'

FitsWCS

public FitsWCS(int nax)
Constructor for FitsData class given a No. of axies of data array.

Parameters:
nax - No. of axies of data array
Method Detail

setHeader

public void setHeader(FitsHeader header,
                      char ver)
Define FITS header for FitsWCS object.

Parameters:
header - FitsHeader object with the image header
ver - version of WCS i.e. ' ' or 'A'..'Z'

toWCS

public double[] toWCS(double[] p)
Compute World Coordinates from pixel coordinates.

Parameters:
p - Array with pixel coordinates

toPixel

public double[] toPixel(double[] wcs)
Compute pixel coordinates from a set of World Coordinates.

Parameters:
wcs - Array with World Coordinates