public class McIDASGridReader extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
needToSwap
swap flag
|
protected ucar.unidata.io.RandomAccessFile |
rf
The file
|
| Constructor and Description |
|---|
McIDASGridReader()
Bean ctor
|
McIDASGridReader(ucar.unidata.io.RandomAccessFile raf)
Create a McIDASGrid Reader from the file
|
McIDASGridReader(String filename)
Create a McIDASGrid Reader from the file
|
| Modifier and Type | Method and Description |
|---|---|
GridIndex |
getGridIndex()
to get the grid header corresponding to the last grid read
|
protected boolean |
init()
Initialize this reader.
|
protected boolean |
init(boolean fullCheck)
Initialize this reader.
|
void |
init(ucar.unidata.io.RandomAccessFile raf)
Initialize the file, read in all the metadata (ala DM_OPEN)
|
boolean |
init(ucar.unidata.io.RandomAccessFile raf,
boolean fullCheck)
Initialize the file, read in all the metadata (ala DM_OPEN)
|
float[] |
readGrid(McIDASGridRecord gr)
Read the grid
|
int |
readInt(int word)
Read an integer
|
protected ucar.unidata.io.RandomAccessFile rf
protected boolean needToSwap
public McIDASGridReader()
public McIDASGridReader(String filename) throws IOException
filename - filenameIOException - problem reading filepublic McIDASGridReader(ucar.unidata.io.RandomAccessFile raf)
throws IOException
raf - RandomAccessFileIOException - problem reading filepublic final void init(ucar.unidata.io.RandomAccessFile raf)
throws IOException
raf - RandomAccessFile to read.IOException - problem reading filepublic final boolean init(ucar.unidata.io.RandomAccessFile raf,
boolean fullCheck)
throws IOException
fullCheck - for a full check reading gridsraf - RandomAccessFile to read.IOException - problem reading fileprotected boolean init()
throws IOException
IOException - problem reading the dataprotected boolean init(boolean fullCheck)
throws IOException
fullCheck - for a full check reading gridsIOException - problem reading the datapublic float[] readGrid(McIDASGridRecord gr) throws IOException
gr - the grid recordIOExceptionpublic GridIndex getGridIndex()
public int readInt(int word)
throws IOException
word - word in file (0 based) to readIOException - problem reading file