@Immutable
public class Grib1ParamTables
extends java.lang.Object
Constructor and Description |
---|
Grib1ParamTables() |
Modifier and Type | Method and Description |
---|---|
static void |
addParameterTable(int center,
int subcenter,
int tableVersion,
java.lang.String tableFilename)
Add table to standard tables for a specific center, subcenter and version.
|
static boolean |
addParameterTableLookup(java.lang.String lookupFilename)
Add all tables in list to standard tables
|
static Grib1ParamTables |
factory(org.jdom2.Element paramTableElem)
Get a Grib1Tables object, optionally specifiying a parameter table in XML specific to this dataset.
|
static Grib1ParamTables |
factory(java.lang.String paramTablePath,
java.lang.String lookupTablePath)
Get a Grib1ParamTables object, optionally specifying a parameter table or lookup table specific to this dataset.
|
static Grib1ParamTableReader |
getDefaultWmoTable() |
Grib1Parameter |
getParameter(Grib1Record record) |
Grib1Parameter |
getParameter(int center,
int subcenter,
int tableVersion,
int param_number) |
Grib1ParamTableReader |
getParameterTable(int center,
int subcenter,
int tableVersion)
Debugging only
|
static java.util.List<Grib1ParamTableReader> |
getStandardParameterTables() |
static boolean |
isStrict() |
static void |
setStrict(boolean strict)
Set strict mode.
|
public static boolean isStrict()
public static void setStrict(boolean strict)
strict
- true for strict mode.public static Grib1ParamTableReader getDefaultWmoTable()
public static Grib1ParamTables factory(java.lang.String paramTablePath, java.lang.String lookupTablePath) throws java.io.IOException
paramTablePath
- path to a parameter table, in format Grib1ParamTable can read.lookupTablePath
- path to a lookup table, in format Lookup.readLookupTable() can read.java.io.IOException
- on read errorpublic static Grib1ParamTables factory(org.jdom2.Element paramTableElem)
paramTableElem
- parameter table in XMLpublic Grib1Parameter getParameter(Grib1Record record)
public Grib1Parameter getParameter(int center, int subcenter, int tableVersion, int param_number)
public Grib1ParamTableReader getParameterTable(int center, int subcenter, int tableVersion)
public static java.util.List<Grib1ParamTableReader> getStandardParameterTables()
public static boolean addParameterTableLookup(java.lang.String lookupFilename) throws java.io.IOException
lookupFilename
- filename containing list of tablesjava.io.IOException
- if file found but read errorpublic static void addParameterTable(int center, int subcenter, int tableVersion, java.lang.String tableFilename)
center
- center idsubcenter
- subcenter id, or -1 for alltableVersion
- table verssion, or -1 for alltableFilename
- file to read parameter table from