public class GribPDSParamTable extends Object
| Constructor and Description |
|---|
GribPDSParamTable(int center_id,
int subcenter_id,
int version,
String path) |
GribPDSParamTable(String path) |
| Modifier and Type | Method and Description |
|---|---|
static void |
addParameterTable(int center,
int subcenter,
int tableVersion,
String path)
Add table for a specific center, subcenter and version.
|
static boolean |
addParameterUserLookup(String userGribTabList)
Read user-defined list of tables.
|
int |
getCenter_id() |
static GribPDSParamTable |
getDefaultTable() |
int |
getKey() |
GridParameter |
getLocalParameter(int id)
Get the parameter with id, but dont look in default table.
|
String |
getName() |
GridParameter |
getParameter(int id)
Get the parameter with id.
|
static GridParameter |
getParameter(int center,
int subcenter,
int tableVersion,
int param_number) |
Map<Integer,GridParameter> |
getParameters() |
static GribPDSParamTable |
getParameterTable(int center,
int subcenter,
int tableVersion)
Looks for the parameter table which matches the center, subcenter and table version.
|
static List<GribPDSParamTable> |
getParameterTables() |
String |
getPath() |
int |
getSubcenter_id() |
int |
getVersion() |
static boolean |
isStrict() |
static void |
main(String[] args) |
static void |
setStrict(boolean strict) |
String |
toString() |
public GribPDSParamTable(String path) throws IOException
IOExceptionpublic GribPDSParamTable(int center_id,
int subcenter_id,
int version,
String path)
public static boolean isStrict()
public static void setStrict(boolean strict)
public static GribPDSParamTable getDefaultTable()
public static List<GribPDSParamTable> getParameterTables()
public static GridParameter getParameter(int center, int subcenter, int tableVersion, int param_number)
public static GribPDSParamTable getParameterTable(int center, int subcenter, int tableVersion)
center - - integer from PDS octet 5, representing Center.subcenter - - integer from PDS octet 26, representing SubcentertableVersion - - integer from PDS octet 4, representing Parameter Table Versionpublic static boolean addParameterUserLookup(String userGribTabList) throws IOException
userGribTabList - filename containing list of tablesIOException - if file found but read errorpublic static void addParameterTable(int center,
int subcenter,
int tableVersion,
String path)
center - center idsubcenter - subcenter id, or -1 for alltableVersion - table verssion, or -1 for allpath - file to read frompublic int getCenter_id()
public int getSubcenter_id()
public int getVersion()
public String getName()
public int getKey()
public String getPath()
public Map<Integer,GridParameter> getParameters()
public GridParameter getParameter(int id)
id - the parameter numberpublic GridParameter getLocalParameter(int id)
id - the parameter numberpublic static void main(String[] args) throws IOException
IOExceptionCopyright © 1999-2012 UCAR/Unidata. All Rights Reserved.