|
||||||||||
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(RandomAccessFile raf)
Constructs a Grib1Input object from a raf. |
Method Summary | |
---|---|
int |
getEdition()
Grib edition number 1, 2 or 0 not a Grib file. |
HashMap<String,Grib1GridDefinitionSection> |
getGDSs()
Get GDS's of the GRIB file. |
ArrayList<Grib1Product> |
getProducts()
Get products of the GRIB file. |
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Grib1Input(RandomAccessFile raf)
raf
- with GRIB contentMethod Detail |
---|
public final void scan(boolean getProducts, boolean oneRecord) throws NoValidGribException, 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
IOException
- if raf does not contain a valid GRIB recordpublic final int getEdition() throws IOException
IOException
- raf readpublic final ArrayList<Grib1Product> getProducts()
public final ArrayList<Grib1Record> getRecords()
public final HashMap<String,Grib1GridDefinitionSection> getGDSs()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |