|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.grib.grib2.Grib2ExtractRawData
public final class Grib2ExtractRawData
A class that scans a GRIB2 file stream to extract product information. Either the first record of the Grib file is returned or all the records matching a certain parameter are return. The parameter is designated by it's Discipline number, Category number, and Parameter number.
Constructor Summary | |
---|---|
Grib2ExtractRawData(ucar.unidata.io.RandomAccessFile raf)
Constructs a Grib2ExtractRawData object from a raf. |
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
Outputs first record of raw data to STDOUT or parms based on discipline, category, and number |
boolean |
scan(int discipline,
int category,
int number,
int forecast)
scans the Grib2 file obtaining the first record or the data associated with a parameter |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Grib2ExtractRawData(ucar.unidata.io.RandomAccessFile raf)
raf
- with GRIB contentMethod Detail |
---|
public final boolean scan(int discipline, int category, int number, int forecast) throws java.io.IOException
discipline,
- parameter discipline numbercategory,
- parameter category numbernumber,
- parameter numberforecast
- extract these times
NotSupportedException
- NotSupportedException
java.io.IOException
- on data readpublic static void main(java.lang.String[] args) throws java.io.IOException
args
- filename
java.io.IOException
- on data reads
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |