|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.grib.grib1.Grib1Input
public final class Grib1Input
A class that scans a GRIB file to extract product information.
Constructor Summary | |
---|---|
Grib1Input(ucar.unidata.io.RandomAccessFile raf)
Constructs a Grib1Input object from a raf. |
Method Summary | |
---|---|
int |
getEdition()
Grib edition number 1, 2 or 0 not a Grib file. |
java.util.HashMap<java.lang.String,Grib1GridDefinitionSection> |
getGDSs()
Get GDS's of the GRIB file. |
java.util.ArrayList<Grib1Product> |
getProducts()
Get products of the GRIB file. |
java.util.ArrayList<Grib1Record> |
getRecords()
Get records of the GRIB file. |
void |
scan(boolean getProducts,
boolean oneRecord)
scans a Grib file to gather information that could be used to create an index or dump the metadata contents. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Grib1Input(ucar.unidata.io.RandomAccessFile raf)
raf
- with GRIB contentMethod Detail |
---|
public final void scan(boolean getProducts, boolean oneRecord) throws NotSupportedException, NoValidGribException, java.io.IOException
getProducts
- products have enough information for data extractionsoneRecord
- returns after processing one record in the Grib file
NoValidGribException
- not supported grib feature
NotSupportedException
- not supported grib feature
java.io.IOException
- if raf does not contain a valid GRIB recordpublic final int getEdition() throws java.io.IOException
java.io.IOException
- raf readpublic final java.util.ArrayList<Grib1Product> getProducts()
public final java.util.ArrayList<Grib1Record> getRecords()
public final java.util.HashMap<java.lang.String,Grib1GridDefinitionSection> getGDSs()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |