|
||||||||||
| 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(java.lang.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. |
void |
init(RandomAccessFile raf)
Initialize the file, read in all the metadata (ala DM_OPEN) |
static void |
main(java.lang.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(java.lang.String filename)
throws java.io.IOException
filename - filename
java.io.IOException - problem reading file
public McIDASGridReader(RandomAccessFile raf)
throws java.io.IOException
raf - RandomAccessFile
java.io.IOException - problem reading file| Method Detail |
|---|
public final void init(RandomAccessFile raf)
throws java.io.IOException
raf - RandomAccessFile to read.
java.io.IOException - problem reading file
protected boolean init()
throws java.io.IOException
java.io.IOException - problem reading the datapublic float[] readGrid(McIDASGridRecord gr)
gr - the grid record
public GridIndex getGridIndex()
public int readInt(int word)
throws java.io.IOException
word - word in file (0 based) to read
java.io.IOException - problem reading file
public static void main(java.lang.String[] args)
throws java.io.IOException
args - file name
java.io.IOException - problem reading file
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||