public class CachedFitsReader extends FitsReader.Default implements FitsReader
FitsReader.Default
Constructor and Description |
---|
CachedFitsReader(FitsReader reader,
boolean verbose)
Instantiates a new cached fits reader.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getColumn, getLine, getRow, getSlice, getVolume
public CachedFitsReader(FitsReader reader, boolean verbose)
reader
- the readerverbose
- the verbosepublic java.io.File getFile()
FitsReader
getFile
in interface FitsReader
public usf.saav.common.range.IntRange1D[] getAxesSize()
FitsReader
getAxesSize
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.