|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.nc2.iosp.mcidas.McIDASGridReader
public class McIDASGridReader
Read grid(s) from a McIDAS grid file
Field Summary | |
---|---|
protected boolean |
needToSwap
swap flag |
protected RandomAccessFile |
rf
The file |
Constructor Summary | |
---|---|
McIDASGridReader()
Bean ctor |
|
McIDASGridReader(RandomAccessFile raf)
Create a McIDASGrid Reader from the file |
|
McIDASGridReader(String filename)
Create a McIDASGrid Reader from the file |
Method Summary | |
---|---|
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(RandomAccessFile raf)
Initialize the file, read in all the metadata (ala DM_OPEN) |
void |
init(RandomAccessFile raf,
boolean fullCheck)
Initialize the file, read in all the metadata (ala DM_OPEN) |
static void |
main(String[] args)
for testing purposes |
float[] |
readGrid(McIDASGridRecord gr)
Read the grid |
int |
readInt(int word)
Read an integer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected RandomAccessFile rf
protected boolean needToSwap
Constructor Detail |
---|
public McIDASGridReader()
public McIDASGridReader(String filename) throws IOException
filename
- filename
IOException
- problem reading filepublic McIDASGridReader(RandomAccessFile raf) throws IOException
raf
- RandomAccessFile
IOException
- problem reading fileMethod Detail |
---|
public final void init(RandomAccessFile raf) throws IOException
raf
- RandomAccessFile to read.
IOException
- problem reading filepublic final void init(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 grids
IOException
- problem reading the datapublic float[] readGrid(McIDASGridRecord gr)
gr
- the grid record
public GridIndex getGridIndex()
public int readInt(int word) throws IOException
word
- word in file (0 based) to read
IOException
- problem reading filepublic static void main(String[] args) throws IOException
args
- file name
IOException
- problem reading file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |