public final class Grib2Input extends Object
| Constructor and Description |
|---|
Grib2Input(RandomAccessFile raf)
Constructs a Grib2Input object from a raf.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public Grib2Input(RandomAccessFile raf)
raf - with GRIB contentpublic static boolean isValidFile(RandomAccessFile raf) throws IOException
IOExceptionpublic final boolean scan(boolean getProductsOnly,
boolean oneRecord)
throws IOException
getProductsOnly - get products verse get recordsoneRecord - if true then return first recordNotSupportedException - NotSupportedExceptionIOException - on data readpublic final int getEdition()
throws IOException
IOException - on data readNotSupportedException - NotSupportedExceptionpublic final List<Grib2Product> getProducts()
public final List<Grib2Record> getRecords()
public final Map<String,Grib2GridDefinitionSection> getGDSs()
Copyright © 1999–2014 UCAR/Unidata. All rights reserved.