|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eso.fits.FitsData
org.eso.fits.FitsRGroup
public class FitsRGroup
FitsRGroup class represents a FITS data matrix in the Random Group format.
Field Summary |
---|
Fields inherited from class org.eso.fits.FitsData |
---|
bitpix, changeData, dataArray, dataFile, dataOffset, isRAFile, naxis, noGroup, noParm, size, type |
Constructor Summary | |
---|---|
FitsRGroup(FitsHeader header,
java.io.DataInput file,
boolean sflag)
Constructor for FitsRGroup class given a FITS prime matrix or an image extension header with associated data unit as a file. |
Method Summary | |
---|---|
double[] |
getCdelt()
Gets step size for the axes (see CDELTn). |
double[] |
getCrpix()
Gets reference pixel for the axes (see CRPIXn). |
double[] |
getCrval()
Gets coordinate value for the reference pixel of the axes (see CRVALn). |
float[] |
getFloatValues(int offset,
int size,
float[] data)
Read set of data values from the matrix as a float array. |
int[] |
getFloatValues(int offset,
int size,
int[] data)
Gets set of data points from the matrix as a int values. |
FitsHeader |
getHeader()
Create and return a minimum FITS header for data Matrix. |
int |
getNoValues()
Gets the total number of data values in the data matrix. |
short[] |
getShortValues(int offset,
int size,
short[] data)
Gets set of data points from the matrix as a short values. |
FitsWCS |
getWCS()
Gets the WCS object for the image. |
double[] |
toPixel(double[] wc)
Compute pixel coordinates from a set of World Coordinates. |
double[] |
toWCS(double[] pix)
Compute World Coordinates from pixel coordinates. |
Methods inherited from class org.eso.fits.FitsData |
---|
closeFile, getNaxis, getNoAxes, getType, writeFile |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FitsRGroup(FitsHeader header, java.io.DataInput file, boolean sflag) throws FitsException
header
- FitsHeader object with the image headerfile
- RandomAccess file positioned at the start of the
associated data unitsflag
- Flag for storing data matrix internally
FitsException
Method Detail |
---|
public FitsHeader getHeader()
getHeader
in class FitsData
public short[] getShortValues(int offset, int size, short[] data) throws FitsException
offset
- pixel offset within hte data matrixsize
- no. of pixel values to be readdata
- array which will hold the return values.
If null an array of size is created.
FitsException
public int[] getFloatValues(int offset, int size, int[] data) throws FitsException
offset
- pixel offset within hte data matrixsize
- no. of pixel values to be readdata
- array which will hold the return values.
If null an array of size is created.
FitsException
public float[] getFloatValues(int offset, int size, float[] data) throws FitsException
offset
- pixel offset within hte data matrixsize
- no. of pixel values to be readdata
- array which will hold the return values.
If null an array of size is created.
FitsException
public int getNoValues()
public double[] getCrpix()
public double[] getCrval()
public double[] getCdelt()
public FitsWCS getWCS()
public double[] toWCS(double[] pix)
pix
- Array with pixel coordinatespublic double[] toPixel(double[] wc)
wc
- Array with World Coordinates
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |