public class Grib1ParamTableReader
extends java.lang.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,
java.lang.String path)
Create a standard table from a file.
|
Grib1ParamTableReader(java.lang.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.
|
java.lang.String |
getName() |
Grib1Parameter |
getParameter(int id)
Get the parameter with id.
|
java.util.Map<java.lang.Integer,Grib1Parameter> |
getParameters() |
java.lang.String |
getPath() |
int |
getSubcenter_id() |
int |
getVersion() |
void |
setParameters(java.util.Map<java.lang.Integer,Grib1Parameter> params) |
java.lang.String |
toString() |
boolean |
useParamName() |
public Grib1ParamTableReader(java.lang.String path) throws java.io.IOException
path
- read from this path, may be reletivejava.io.IOException
- on io errorpublic Grib1ParamTableReader(int center_id, int subcenter_id, int version, java.lang.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 java.io.IOException
paramTableElem
- the jdom treejava.io.IOException
- on io errorpublic int getCenter_id()
public int getSubcenter_id()
public int getVersion()
public java.lang.String getName()
public boolean useParamName()
public int getKey()
public java.lang.String getPath()
public java.util.Map<java.lang.Integer,Grib1Parameter> getParameters()
public void setParameters(java.util.Map<java.lang.Integer,Grib1Parameter> params)
public Grib1Parameter getParameter(int id)
id
- the parameter numberpublic Grib1Parameter getLocalParameter(int id)
id
- the parameter numberpublic java.lang.String toString()
toString
in class java.lang.Object