public class Grib1ParamTable extends Object
| Constructor and Description |
|---|
Grib1ParamTable(org.jdom2.Element paramTableElem)
Create a dataset-specific table from a jdom tree using the DSS parser
|
Grib1ParamTable(int center_id,
int subcenter_id,
int version,
String path)
Create a standard table from a file.
|
Grib1ParamTable(String path)
Read a dataset-specific table from a file
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCenter_id() |
int |
getKey() |
Grib1Parameter |
getLocalParameter(int id)
Get the parameter with id, but dont look in default table.
|
String |
getName() |
Grib1Parameter |
getParameter(int id)
Get the parameter with id.
|
Map<Integer,Grib1Parameter> |
getParameters() |
String |
getPath() |
int |
getSubcenter_id() |
int |
getVersion() |
static void |
main(String[] args) |
void |
setParameters(Map<Integer,Grib1Parameter> params) |
String |
toString() |
boolean |
useParamName() |
public Grib1ParamTable(String path) throws IOException
path - read from this path, may be reletiveIOException - on io errorpublic Grib1ParamTable(int center_id,
int subcenter_id,
int version,
String path)
center_id - associate with this centersubcenter_id - associate with this subcenterversion - associate with this versionpath - read from this path, may be reletivepublic Grib1ParamTable(org.jdom2.Element paramTableElem)
throws IOException
paramTableElem - the jdom treeIOException - on io errorpublic int getCenter_id()
public int getSubcenter_id()
public int getVersion()
public String getName()
public boolean useParamName()
public int getKey()
public String getPath()
public Map<Integer,Grib1Parameter> getParameters()
public void setParameters(Map<Integer,Grib1Parameter> params)
public Grib1Parameter getParameter(int id)
id - the parameter numberpublic Grib1Parameter getLocalParameter(int id)
id - the parameter numberpublic static void main(String[] args) throws IOException
IOExceptionCopyright © 1999-2013 UCAR/Unidata. All Rights Reserved.