@Immutable public class Grib2Tables extends Object implements GribTables, thredds.featurecollection.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) |
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() |
String |
getCategory(int discipline,
int category) |
int |
getCenterId() |
String |
getCodeTableValue(String tableName,
int code) |
Grib2TablesId |
getConfigId() |
ucar.nc2.time.CalendarDate |
getForecastDate(Grib2Record gr) |
TimeCoordIntvDateValue |
getForecastTimeInterval(Grib2Record gr)
Get the time interval in units of gr.getPDS().getTimeUnit()
|
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.
|
String |
getGeneratingProcessName(int genProcess) |
String |
getGeneratingProcessTypeName(int genProcess) |
String |
getLevelName(int id) |
String |
getLevelNameShort(int id) |
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.
|
String |
getParamTablePathUsedFor(int discipline,
int category,
int number)
Get the name of the parameter table that is being used for this parameter.
|
String |
getPath() |
String |
getProbabilityNameShort(int id) |
String |
getStatisticName(int id) |
String |
getStatisticNameShort(int id) |
GribStatType |
getStatType(int grib2StatCode) |
String |
getSubCenterName(int center_id,
int subcenter_id) |
Grib2TablesId.Type |
getType() |
String |
getVariableName(Grib2Record gr) |
String |
getVariableName(int discipline,
int category,
int parameter)
Make a IOSP Variable name, using the Parameter name is available, otherwise a synthezized 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(Formatter f) |
static String |
makeParamCode(int code) |
static String |
makeParamCode(int discipline,
int category,
int number) |
static int |
makeParamId(int discipline,
int category,
int number) |
void |
setTimeUnitConverter(thredds.featurecollection.TimeUnitConverter timeUnitConverter) |
void |
showDetails(Formatter f) |
void |
showEntryDetails(Formatter f,
List<GribTables.Parameter> params) |
void |
showSpecialPdsInfo(Grib2Record pds,
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 String makeParamCode(int discipline, int category, int number)
public static 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 String getName()
public int getCenterId()
public String getPath()
public Grib2TablesId getConfigId()
public Grib2TablesId.Type getType()
public String getVariableName(Grib2Record gr)
public 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 String getSubCenterName(int center_id, int subcenter_id)
getSubCenterName in interface GribTables@Nullable public String getGeneratingProcessName(int genProcess)
getGeneratingProcessName in interface GribTables@Nullable public String getGeneratingProcessTypeName(int genProcess)
getGeneratingProcessTypeName in interface GribTablespublic String getStatisticName(int id)
public String getStatisticNameShort(int id)
@Nullable public GribStatType getStatType(int grib2StatCode)
getStatType in interface GribTablespublic String getProbabilityNameShort(int id)
public VertCoordType getVertUnit(int code)
getVertUnit in interface GribTablescode - code from table 4.5public boolean isLevelUsed(int code)
public boolean isLayer(Grib2Pds pds)
public String getLevelNameShort(int id)
getLevelNameShort in interface GribTablespublic void setTimeUnitConverter(thredds.featurecollection.TimeUnitConverter timeUnitConverter)
public int convertTimeUnit(int timeUnit)
convertTimeUnit in interface thredds.featurecollection.TimeUnitConverter@Nullable public ucar.nc2.time.CalendarDate getForecastDate(Grib2Record gr)
@Nullable public TimeCoordIntvDateValue getForecastTimeInterval(Grib2Record gr)
gr - Grib record, must have pds that is a time interval.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 String getParamTablePathUsedFor(int discipline, int category, int number)
public com.google.common.collect.ImmutableList<GribTables.Parameter> getParameters()
public void lookForProblems(Formatter f)
public void showDetails(Formatter f)
public void showEntryDetails(Formatter f, List<GribTables.Parameter> params)
public void showSpecialPdsInfo(Grib2Record pds, Formatter f)