|
||||||||||
| 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.
| Constructor Summary | |
|---|---|
Grib2Input(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. |
Map<String,Grib2GridDefinitionSection> |
getGDSs()
Get map of id -> GDS |
List<Grib2Product> |
getProducts()
Get list of Grib2Product |
List<Grib2Record> |
getRecords()
Get list of Grib2Record |
static boolean |
isValidFile(RandomAccessFile raf)
|
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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Grib2Input(RandomAccessFile raf)
raf - with GRIB content| Method Detail |
|---|
public static boolean isValidFile(RandomAccessFile raf)
throws IOException
IOException
public final boolean scan(boolean getProductsOnly,
boolean oneRecord)
throws IOException
getProductsOnly - get products verse get recordsoneRecord - if true then return first record
NotSupportedException - NotSupportedException
IOException - on data read
public final int getEdition()
throws IOException
IOException - on data read
NotSupportedException - NotSupportedExceptionpublic final List<Grib2Product> getProducts()
public final List<Grib2Record> getRecords()
public final Map<String,Grib2GridDefinitionSection> getGDSs()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||