|
||||||||||
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(InputStream is)
Reads in the list of tables available and stores them. |
static boolean |
addParameterUserLookup(String userGribTabList)
Reads in the list of tables available and stores them. |
int |
getCenter_id()
|
String |
getFilename()
|
GridParameter |
getParameter(int id)
Get the parameter with id id. |
Map<String,GridParameter> |
getParameters()
|
static GribPDSParamTable |
getParameterTable(int center,
int subcenter,
int tableVersion)
Looks for the parameter table which matches the center, subcenter and table version from the tables array. |
static GribPDSParamTable[] |
getParameterTables()
|
String |
getPath()
|
int |
getSubcenter_id()
|
int |
getTable_number()
|
static void |
main(String[] args)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static GribPDSParamTable[] getParameterTables()
public static void addParameterUserLookup(InputStream is) throws IOException
is
- UserGribTabList as a InputStream
IOException
- or read errorpublic static boolean addParameterUserLookup(String userGribTabList) throws IOException
userGribTabList
- string of userlookup file
IOException
- if file found but read errorpublic static GribPDSParamTable getParameterTable(int center, int subcenter, int tableVersion) throws NotSupportedException
center
- - integer from PDS octet 5, representing Center.subcenter
- - integer from PDS octet 26, representing SubcentertableVersion
- - integer from PDS octet 4, representing Parameter Table Version
NotSupportedException
- no table foundpublic int getCenter_id()
public int getSubcenter_id()
public int getTable_number()
public String getPath()
public String getFilename()
public Map<String,GridParameter> getParameters()
public GridParameter getParameter(int id)
id
- the parameter id
public String toString()
toString
in class Object
public static void main(String[] args) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |