Package ucar.nc2.grib.grib1.tables
Class Grib1ParamTableReader
- java.lang.Object
-
- ucar.nc2.grib.grib1.tables.Grib1ParamTableReader
-
public class Grib1ParamTableReader extends Object
A Grib1 Parameter Table (table 2). This is a map: code -> Grib1Parameter. Handles reading the table in from various formats- Since:
- 11/16/11
-
-
Constructor Summary
Constructors Constructor Description Grib1ParamTableReader(String path)Read a dataset-specific table from a file
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCenter_id()StringgetDesc()intgetKey()Grib1ParametergetLocalParameter(int id)Get the parameter with id, but dont look in default table.StringgetName()Grib1ParametergetParameter(int id)Get the parameter with id.Map<Integer,Grib1Parameter>getParameters()StringgetPath()intgetSubcenter_id()intgetVersion()voidsetParameters(Map<Integer,Grib1Parameter> params)StringtoString()booleanuseParamName()
-
-
-
Constructor Detail
-
Grib1ParamTableReader
public Grib1ParamTableReader(String path)
Read a dataset-specific table from a file- Parameters:
path- read from this path, may be relative
-
-
Method Detail
-
getCenter_id
public int getCenter_id()
-
getSubcenter_id
public int getSubcenter_id()
-
getVersion
public int getVersion()
-
getName
public String getName()
-
getDesc
public String getDesc()
-
useParamName
public boolean useParamName()
-
getKey
public int getKey()
-
getPath
public String getPath()
-
getParameters
public Map<Integer,Grib1Parameter> getParameters()
-
setParameters
public void setParameters(Map<Integer,Grib1Parameter> params)
-
getParameter
public Grib1Parameter getParameter(int id)
Get the parameter with id. If not found, look in default table.- Parameters:
id- the parameter number- Returns:
- the Grib1Parameter, or null if not found
-
getLocalParameter
public Grib1Parameter getLocalParameter(int id)
Get the parameter with id, but dont look in default table.- Parameters:
id- the parameter number- Returns:
- the Grib1Parameter, or null if not found
-
-