|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.grib.grib2.Grib2Input
public final class Grib2Input
Uses a RandomAccessFile to scans a GRIB2 file to extract product information. A Grib record starts with the string GRIB. A GRIB record has 8 sections, the detailed information is at: http://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc.shtml
| Constructor Summary | |
|---|---|
Grib2Input(ucar.unidata.io.RandomAccessFile raf)
Constructs a Grib2Input object from a raf. |
|
| Method Summary | |
|---|---|
int |
getEdition()
returns Grib file type, 1 or 2, or 0 not a Grib file. |
java.util.Map<java.lang.String,Grib2GridDefinitionSection> |
getGDSs()
Get GDS's of the GRIB file. |
java.util.List<Grib2Product> |
getProducts()
Get products of the GRIB file. |
java.util.List<Grib2Record> |
getRecords()
Get records of the GRIB file. |
boolean |
scan(boolean getProductsOnly,
boolean oneRecord)
scans the Grib2 file obtaining Products or Records that contain all needed information for data extraction later. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Grib2Input(ucar.unidata.io.RandomAccessFile raf)
raf - with GRIB content| Method Detail |
|---|
public final boolean scan(boolean getProductsOnly,
boolean oneRecord)
throws NotSupportedException,
java.io.IOException
getProductsOnly - get products verse get recordsoneRecord - if true then return first record
NotSupportedException - NotSupportedException
java.io.IOException - on data read
public final int getEdition()
throws java.io.IOException,
NotSupportedException
java.io.IOException - on data read
NotSupportedException - NotSupportedExceptionpublic final java.util.List<Grib2Product> getProducts()
public final java.util.List<Grib2Record> getRecords()
public final java.util.Map<java.lang.String,Grib2GridDefinitionSection> getGDSs()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||