public final class Grib1Input extends Object
| Constructor and Description |
|---|
Grib1Input(RandomAccessFile raf)
Constructs a Grib1Input object from a raf.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public Grib1Input(RandomAccessFile raf)
raf - with GRIB contentpublic 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 fileNoValidGribException - not supported grib featureNotSupportedException - not supported grib featureIOException - 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()
Copyright © 1999–2013 UCAR/Unidata. All rights reserved.