ucar.grib.grib1
Class Grib1SplitByGridID
java.lang.Object
ucar.grib.grib1.Grib1SplitByGridID
public final class Grib1SplitByGridID
- extends Object
A class that scans a GRIB file to split file according to Grid ID.
Method Summary |
static void |
main(String[] args)
Splits a Grib1 file according to Grid IDs in the PDS section |
boolean |
scan()
scans a Grib file to gather information that could be used to
create an index or dump the metadata contents. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fileName
public static String fileName
gridFiles
public static Map<String,DataOutputStream> gridFiles
Grib1SplitByGridID
public Grib1SplitByGridID(RandomAccessFile raf)
- Constructs a Grib1Input object from a raf.
- Parameters:
raf
- with GRIB content
scan
public final boolean scan()
throws IOException
- scans a Grib file to gather information that could be used to
create an index or dump the metadata contents.
- Returns:
- boolean if file read successful
- Throws:
IOException
- if raf does not contain a valid GRIB record
main
public static void main(String[] args)
throws IOException
- Splits a Grib1 file according to Grid IDs in the PDS section
- Parameters:
args
- filename
- Throws:
IOException
- error when reading file
Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.