|
||||||||||
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(RandomAccessFile raf)
Constructs a Grib2ExtractRawData object from a raf. |
Method Summary | |
---|---|
static void |
main(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,
long gOffset,
long pOffset)
scans the Grib2 file obtaining the first record or the data associated with a parameter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Grib2ExtractRawData(RandomAccessFile raf)
raf
- with GRIB contentMethod Detail |
---|
public final boolean scan(int discipline, int category, int number, int forecast, long gOffset, long pOffset) throws IOException
discipline,
- parameter discipline numbercategory,
- parameter category numbernumber,
- parameter numberforecast
- extract these times
NotSupportedException
- NotSupportedException
IOException
- on data readpublic static void main(String[] args) throws IOException
args
- filename
IOException
- on data reads
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |