@Immutable public class Grib1ParamTables extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Grib1ParamTables.Lookup |
| Constructor and Description |
|---|
Grib1ParamTables() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addParameterTable(int center,
int subcenter,
int tableVersion,
String tableFilename)
Add table to standard tables for a specific center, subcenter and version.
|
static boolean |
addParameterTableLookup(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(String paramTablePath,
String lookupTablePath)
Get a Grib1ParamTables object, optionally specifying a parameter table or lookup table specific to this dataset.
|
static Grib1ParamTable |
getDefaultTable() |
Grib1Parameter |
getParameter(Grib1Record record) |
Grib1Parameter |
getParameter(int center,
int subcenter,
int tableVersion,
int param_number) |
Grib1ParamTable |
getParameterTable(int center,
int subcenter,
int tableVersion)
Debugging only
|
static List<Grib1ParamTable> |
getStandardParameterTables() |
static boolean |
isStrict() |
static int |
makeKey(int center,
int subcenter,
int version) |
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 Grib1ParamTable getDefaultTable()
public static int makeKey(int center,
int subcenter,
int version)
public static Grib1ParamTables factory(String paramTablePath, String lookupTablePath) throws IOException
paramTablePath - path to a parameter table, in format Grib1ParamTable can read.lookupTablePath - path to a lookup table, in format Lookup.readLookupTable() can read.IOException - on read errorpublic static Grib1ParamTables factory(org.jdom2.Element paramTableElem) throws IOException
paramTableElem - parameter table in XMLIOException - on read errorpublic Grib1Parameter getParameter(Grib1Record record)
public Grib1Parameter getParameter(int center, int subcenter, int tableVersion, int param_number)
public Grib1ParamTable getParameterTable(int center, int subcenter, int tableVersion)
public static List<Grib1ParamTable> getStandardParameterTables()
public static boolean addParameterTableLookup(String lookupFilename) throws IOException
lookupFilename - filename containing list of tablesIOException - if file found but read errorpublic static void addParameterTable(int center,
int subcenter,
int tableVersion,
String tableFilename)
center - center idsubcenter - subcenter id, or -1 for alltableVersion - table verssion, or -1 for alltableFilename - file to read parameter table fromCopyright © 1999-2013 UCAR/Unidata. All Rights Reserved.