@Immutable public class Grib2Tables extends java.lang.Object implements GribTables, TimeUnitConverter
GribTables.Parameter
Modifier and Type | Field and Description |
---|---|
protected ucar.nc2.grib.grib2.table.Grib2TableConfig |
config |
Modifier | Constructor and Description |
---|---|
protected |
Grib2Tables(ucar.nc2.grib.grib2.table.Grib2TableConfig config) |
Modifier and Type | Method and Description |
---|---|
int |
convertTimeUnit(int timeUnit)
Deprecated.
Remove in version 6, functionality moved to Grib2CollectionBuilder
|
static Grib2Tables |
factory(Grib2Record gr) |
static Grib2Tables |
factory(int center,
int subCenter,
int masterVersion,
int localVersion,
int genProcessId) |
static com.google.common.collect.ImmutableList<Grib2Tables> |
getAllRegisteredTables() |
java.lang.String |
getCategory(int discipline,
int category) |
int |
getCenterId() |
java.lang.String |
getCodeTableValue(java.lang.String tableName,
int code) |
Grib2TablesId |
getConfigId() |
CalendarDate |
getForecastDate(Grib2Record gr) |
TimeCoordIntvDateValue |
getForecastTimeInterval(Grib2Record gr) |
int[] |
getForecastTimeIntervalOffset(Grib2Record gr)
If this has a time interval coordinate, get time interval
|
double |
getForecastTimeIntervalSizeInHours(Grib2Pds pds)
Get interval size in units of hours.
|
java.lang.String |
getGeneratingProcessName(int genProcess) |
java.lang.String |
getGeneratingProcessTypeName(int genProcess) |
java.lang.String |
getLevelName(int id) |
java.lang.String |
getLevelNameShort(int id) |
java.lang.String |
getName() |
GribTables.Parameter |
getParameter(Grib2Record gr) |
GribTables.Parameter |
getParameter(GribCollectionImmutable.VariableIndex vindex) |
GribTables.Parameter |
getParameter(int discipline,
Grib2Pds pds) |
GribTables.Parameter |
getParameterRaw(int discipline,
int category,
int number)
Get the unprocessed parameter provided by this Grib2Table.
|
com.google.common.collect.ImmutableList<GribTables.Parameter> |
getParameters()
Get the list of parameters provided by this Grib2Table.
|
java.lang.String |
getParamTablePathUsedFor(int discipline,
int category,
int number)
Get the name of the parameter table that is being used for this parameter.
|
java.lang.String |
getPath() |
java.lang.String |
getProbabilityNameShort(int id) |
java.lang.String |
getStatisticName(int id) |
java.lang.String |
getStatisticNameShort(int id) |
GribStatType |
getStatType(int grib2StatCode) |
java.lang.String |
getSubCenterName(int center_id,
int subcenter_id) |
Grib2TablesId.Type |
getType() |
java.lang.String |
getVariableName(Grib2Record gr) |
java.lang.String |
getVariableName(int discipline,
int category,
int parameter)
Make a IOSP Variable name, using the Parameter name is available, otherwise a synthesized name.
|
VertCoordType |
getVertUnit(int code)
Unit of vertical coordinate.
|
boolean |
isLayer(Grib2Pds pds) |
boolean |
isLevelUsed(int code) |
static boolean |
isLocal(GribTables.Parameter p) |
static boolean |
isLocal(int code) |
static boolean |
isLocal(int discipline,
int category,
int number) |
void |
lookForProblems(java.util.Formatter f) |
static java.lang.String |
makeParamCode(int code) |
static java.lang.String |
makeParamCode(int discipline,
int category,
int number) |
static int |
makeParamId(int discipline,
int category,
int number) |
void |
setTimeUnitConverter(TimeUnitConverter timeUnitConverter)
Deprecated.
Remove in version 6, functionality moved to Grib2CollectionBuilder
|
void |
showDetails(java.util.Formatter f) |
void |
showEntryDetails(java.util.Formatter f,
java.util.List<GribTables.Parameter> params) |
void |
showSpecialPdsInfo(Grib2Record pds,
java.util.Formatter f) |
static int[] |
unmakeParamId(int code) |
protected Grib2Tables(ucar.nc2.grib.grib2.table.Grib2TableConfig config)
public static Grib2Tables factory(Grib2Record gr)
public static Grib2Tables factory(int center, int subCenter, int masterVersion, int localVersion, int genProcessId)
public static int makeParamId(int discipline, int category, int number)
public static int[] unmakeParamId(int code)
public static java.lang.String makeParamCode(int discipline, int category, int number)
public static java.lang.String makeParamCode(int code)
public static boolean isLocal(GribTables.Parameter p)
public static boolean isLocal(int discipline, int category, int number)
public static boolean isLocal(int code)
public static com.google.common.collect.ImmutableList<Grib2Tables> getAllRegisteredTables()
public java.lang.String getName()
public int getCenterId()
public java.lang.String getPath()
public Grib2TablesId getConfigId()
public Grib2TablesId.Type getType()
public java.lang.String getVariableName(Grib2Record gr)
public java.lang.String getVariableName(int discipline, int category, int parameter)
@Nullable public GribTables.Parameter getParameter(Grib2Record gr)
@Nullable public GribTables.Parameter getParameter(GribCollectionImmutable.VariableIndex vindex)
public GribTables.Parameter getParameter(int discipline, Grib2Pds pds)
@Nullable public java.lang.String getCodeTableValue(java.lang.String tableName, int code)
@Nullable public java.lang.String getSubCenterName(int center_id, int subcenter_id)
getSubCenterName
in interface GribTables
@Nullable public java.lang.String getGeneratingProcessName(int genProcess)
getGeneratingProcessName
in interface GribTables
@Nullable public java.lang.String getGeneratingProcessTypeName(int genProcess)
getGeneratingProcessTypeName
in interface GribTables
@Nullable public java.lang.String getCategory(int discipline, int category)
public java.lang.String getStatisticName(int id)
public java.lang.String getStatisticNameShort(int id)
@Nullable public GribStatType getStatType(int grib2StatCode)
getStatType
in interface GribTables
public java.lang.String getProbabilityNameShort(int id)
public VertCoordType getVertUnit(int code)
getVertUnit
in interface GribTables
code
- code from table 4.5public boolean isLevelUsed(int code)
@Nullable public java.lang.String getLevelName(int id)
public boolean isLayer(Grib2Pds pds)
public java.lang.String getLevelNameShort(int id)
getLevelNameShort
in interface GribTables
@Deprecated public void setTimeUnitConverter(TimeUnitConverter timeUnitConverter)
@Deprecated public int convertTimeUnit(int timeUnit)
convertTimeUnit
in interface TimeUnitConverter
@Nullable public CalendarDate getForecastDate(Grib2Record gr)
public TimeCoordIntvDateValue getForecastTimeInterval(Grib2Record gr)
public double getForecastTimeIntervalSizeInHours(Grib2Pds pds)
pds
- must be a Grib2Pds.PdsInterval@Nullable public int[] getForecastTimeIntervalOffset(Grib2Record gr)
gr
- from this record@Nullable public GribTables.Parameter getParameterRaw(int discipline, int category, int number)
public java.lang.String getParamTablePathUsedFor(int discipline, int category, int number)
public com.google.common.collect.ImmutableList<GribTables.Parameter> getParameters()
public void lookForProblems(java.util.Formatter f)
public void showDetails(java.util.Formatter f)
public void showEntryDetails(java.util.Formatter f, java.util.List<GribTables.Parameter> params)
public void showSpecialPdsInfo(Grib2Record pds, java.util.Formatter f)