@Immutable
public class Grib1ParamTables
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Grib1ParamTables.Lookup |
Constructor and Description |
---|
Grib1ParamTables() |
Grib1ParamTables(Grib1ParamTables.Lookup lookup,
Grib1ParamTableReader override) |
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 |
getDefaultTable() |
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 int |
makeKey(int center,
int subcenter,
int version) |
static void |
setStrict(boolean strict)
Set strict mode.
|
public Grib1ParamTables()
public Grib1ParamTables(Grib1ParamTables.Lookup lookup, Grib1ParamTableReader override)
public static boolean isStrict()
public static void setStrict(boolean strict)
strict
- true for strict mode.public static Grib1ParamTableReader getDefaultTable()
public static int makeKey(int center, int subcenter, int version)
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) throws java.io.IOException
paramTableElem
- parameter table in XMLjava.io.IOException
- on read errorpublic 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