public class RawFitsReader extends FitsReader.Default implements FitsReader
Modifier and Type | Class and Description |
---|---|
class |
RawFitsReader.FitsSlice
The Class FitsSlice.
|
class |
RawFitsReader.FitsVolume
The Class FitsVolume.
|
FitsReader.Default
Constructor and Description |
---|
RawFitsReader(java.lang.String filename,
boolean verbose)
Instantiates a new raw fits reader.
|
Modifier and Type | Method and Description |
---|---|
void |
finalize() |
usf.saav.common.range.IntRange1D[] |
getAxesSize()
Gets the axes size.
|
ScalarField1D |
getColumn(int x,
usf.saav.common.range.IntRange1D y_range,
int z,
int w)
Gets the column.
|
float |
getElement(int x,
int y,
int z,
int w)
Gets the element.
|
java.io.File |
getFile()
Gets the file.
|
ScalarField1D |
getLine(int x,
int y,
usf.saav.common.range.IntRange1D z_range,
int w)
Gets the line.
|
ScalarField1D |
getRow(usf.saav.common.range.IntRange1D x_range,
int y,
int z,
int w)
Gets the row.
|
ScalarField2D |
getSlice(usf.saav.common.range.IntRange1D x_range,
usf.saav.common.range.IntRange1D y_range,
int z,
int w)
Gets the slice.
|
ScalarField3D |
getVolume(usf.saav.common.range.IntRange1D x_range,
usf.saav.common.range.IntRange1D y_range,
usf.saav.common.range.IntRange1D z_range,
int w)
Gets the volume.
|
static void |
main(java.lang.String[] args)
The main method.
|
getColumn, getLine, getRow, getSlice, getVolume
public RawFitsReader(java.lang.String filename, boolean verbose) throws nom.tam.fits.common.FitsException, java.io.IOException
filename
- the filenameverbose
- the verbosenom.tam.fits.common.FitsException
- the fits exceptionjava.io.IOException
- Signals that an I/O exception has occurred.public void finalize()
finalize
in class java.lang.Object
public usf.saav.common.range.IntRange1D[] getAxesSize()
FitsReader
getAxesSize
in interface FitsReader
public java.io.File getFile()
FitsReader
getFile
in interface FitsReader
public float getElement(int x, int y, int z, int w)
FitsReader
getElement
in interface FitsReader
x
- the xy
- the yz
- the zw
- the wpublic ScalarField1D getRow(usf.saav.common.range.IntRange1D x_range, int y, int z, int w) throws java.io.IOException
FitsReader
getRow
in interface FitsReader
x_range
- the x rangey
- the yz
- the zw
- the wjava.io.IOException
- Signals that an I/O exception has occurred.public ScalarField1D getColumn(int x, usf.saav.common.range.IntRange1D y_range, int z, int w) throws java.io.IOException
FitsReader
getColumn
in interface FitsReader
x
- the xy_range
- the y rangez
- the zw
- the wjava.io.IOException
- Signals that an I/O exception has occurred.public ScalarField1D getLine(int x, int y, usf.saav.common.range.IntRange1D z_range, int w) throws java.io.IOException
FitsReader
getLine
in interface FitsReader
x
- the xy
- the yz_range
- the z rangew
- the wjava.io.IOException
- Signals that an I/O exception has occurred.public ScalarField2D getSlice(usf.saav.common.range.IntRange1D x_range, usf.saav.common.range.IntRange1D y_range, int z, int w) throws java.io.IOException
FitsReader
getSlice
in interface FitsReader
x_range
- the x rangey_range
- the y rangez
- the zw
- the wjava.io.IOException
- Signals that an I/O exception has occurred.public ScalarField3D getVolume(usf.saav.common.range.IntRange1D x_range, usf.saav.common.range.IntRange1D y_range, usf.saav.common.range.IntRange1D z_range, int w) throws java.io.IOException
FitsReader
getVolume
in interface FitsReader
x_range
- the x rangey_range
- the y rangez_range
- the z rangew
- the wjava.io.IOException
- Signals that an I/O exception has occurred.public static void main(java.lang.String[] args)
args
- the arguments