|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.grib.grib1.GribPDSParamTable
public final class GribPDSParamTable
A class containing static methods which deliver descriptions and names of parameters, levels and units for byte codes from GRIB records.
Performs operations related to loading parameter tables stored in files. Through a lookup table (see readParameterTableLookup) all of the supported Parameter Tables are known. An actual table is not loaded until a parameter from that center/subcenter/table is loaded. see Parameters.txt For now, the lookup table name is hard coded to "resources/grib/tables/tablelookup.lst"
Method Summary | |
---|---|
static void |
addParameterUserLookup(java.io.InputStream is)
Reads in the list of tables available and stores them. |
static void |
addParameterUserLookup(java.lang.String userGribTabList)
Reads in the list of tables available and stores them. |
GridParameter |
getParameter(int id)
Get the parameter with id id. |
static GribPDSParamTable |
getParameterTable(int center,
int subcenter,
int number)
Looks for the parameter table which matches the center, subcenter and table version from the tables array. |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void addParameterUserLookup(java.io.InputStream is) throws java.io.IOException
is
- UserGribTabList as a InputStream
java.io.IOException
- or read errorpublic static void addParameterUserLookup(java.lang.String userGribTabList) throws java.io.IOException
userGribTabList
- string of userlookup file
java.io.IOException
- on read errorpublic static GribPDSParamTable getParameterTable(int center, int subcenter, int number) throws NotSupportedException
center
- - integer from PDS octet 5, representing Center.subcenter
- - integer from PDS octet 26, representing Subcenternumber
- - integer from PDS octet 4, representing Parameter Table Version
NotSupportedException
- no table foundpublic GridParameter getParameter(int id)
id
- the parameter id
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |