public class Grib1ParamTableReader extends Object
Constructor and Description |
---|
Grib1ParamTableReader(org.jdom2.Element paramTableElem)
Create a dataset-specific table from a jdom tree using the DSS parser
|
Grib1ParamTableReader(int center_id,
int subcenter_id,
int version,
String path)
Create a standard table from a file.
|
Grib1ParamTableReader(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() |
void |
setParameters(Map<Integer,Grib1Parameter> params) |
String |
toString() |
boolean |
useParamName() |
public Grib1ParamTableReader(String path) throws IOException
path
- read from this path, may be reletiveIOException
- on io errorpublic Grib1ParamTableReader(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 Grib1ParamTableReader(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 numberCopyright © 1999–2017 UCAR/Unidata. All rights reserved.