public class GribIndexReader extends Object
| Constructor and Description |
|---|
GribIndexReader()
Constructor for creating an Index from the Grib file.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
testing
|
GridIndex |
open(String location)
open Grib Index file for scanning.
|
GridIndex |
open(String location,
InputStream ios)
open Grib Index file for scanning.
|
void |
populateGDS1(GribGridDefRecord ggdr,
Grib1GDSVariables gdsv,
int gdskey)
Populates a GridDefRecord according to Projection.
|
void |
populateGDS2(GribGridDefRecord ggdr,
Grib2GDSVariables gdsv,
int gdskey)
Populates a GridDefRecord according to Projection.
|
void |
setDebug(boolean flag) |
void |
setVerbose(boolean flag) |
public GribIndexReader()
public final GridIndex open(String location) throws IOException
location - URL or local filename of Grib Index fileIOException - on read errorpublic final GridIndex open(String location, InputStream ios) throws IOException
location - URL or local filename of Grib Index fileios - input streamIOException - on read errorpublic void populateGDS2(GribGridDefRecord ggdr, Grib2GDSVariables gdsv, int gdskey)
ggdr - GridDefRecordgdsv - Grib2GDSVariables gdsvgdskey - key for this gdspublic void populateGDS1(GribGridDefRecord ggdr, Grib1GDSVariables gdsv, int gdskey)
ggdr - GridDefRecordgdsv - Grib1GDSVariables gdsvpublic void setDebug(boolean flag)
public void setVerbose(boolean flag)
public static void main(String[] args) throws IOException
args - index to readIOException - on read errorCopyright © 1999–2014 UCAR/Unidata. All rights reserved.