|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jgrib.GribFileGroup
public class GribFileGroup
A class to store multiple GribFile-s while allowing access to the GribRecords of those files as if they were one large file. This came about because it seems most GRIB files are for a single forecast time, and this will allow an entire forecast period to be built. Therefore, the methods are biased towards the separate files being the same model run at different forecast times. It can be used otherwise, but files will be sorted according to forecast time. TODO - This is not yet functional - the next item on my "todo" list
Constructor Summary | |
---|---|
GribFileGroup(java.lang.String[] filenames)
|
Method Summary | |
---|---|
GribRecordGDS[] |
getGrids()
Get get grids |
GribRecordLight[] |
getLightRecords()
Get Light GRIB records |
int |
getRecordCount()
Get the number of records this GRIB file contains. |
java.lang.String[] |
getTypeNames()
Get type names |
void |
listParameters(java.io.PrintStream out)
Method added by Richard Gonzalez 23 Sep 02. |
void |
listRecords(java.io.PrintStream out)
Print out overview of GRIB file content. |
java.lang.String |
toString()
Get a string representation of the GRIB file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GribFileGroup(java.lang.String[] filenames) throws java.io.FileNotFoundException, java.io.IOException, NotSupportedException, NoValidGribException
filenames
-
java.io.FileNotFoundException
java.io.IOException
NotSupportedException
NoValidGribException
Method Detail |
---|
public java.lang.String[] getTypeNames()
public GribRecordLight[] getLightRecords()
public GribRecordGDS[] getGrids()
public int getRecordCount()
public void listRecords(java.io.PrintStream out) throws java.io.IOException, NoValidGribException, NotSupportedException
out
- print stream the output is written to
java.io.IOException
- if a record can not be opened etc.
NoValidGribException
- if a record is no valid GRIB record
NotSupportedException
public void listParameters(java.io.PrintStream out)
out
- print stream the output is written topublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |