@Immutable public class Grib2Customizer extends java.lang.Object implements GribTables, TimeUnitConverter
GribTables.Parameter
Modifier and Type | Field and Description |
---|---|
protected Grib2Table |
grib2Table |
Modifier | Constructor and Description |
---|---|
protected |
Grib2Customizer(Grib2Table grib2Table) |
Modifier and Type | Method and Description |
---|---|
int |
convertTimeUnit(int timeUnit) |
static Grib2Customizer |
factory(Grib2Record gr) |
static Grib2Customizer |
factory(Grib2Table grib2Table) |
static Grib2Customizer |
factory(int center,
int subCenter,
int masterVersion,
int localVersion,
int genProcessId) |
java.lang.String |
getCategory(int discipline,
int category) |
CalendarDate |
getForecastDate(Grib2Record gr) |
TimeCoord.TinvDate |
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
|
java.lang.String |
getGeneratingProcessName(int genProcess) |
java.lang.String |
getGeneratingProcessTypeName(int genProcess) |
java.lang.String |
getLevelName(int id) |
java.lang.String |
getLevelNameShort(int id) |
GribTables.Parameter |
getParameter(int discipline,
int category,
int number) |
GribTables.Parameter |
getParameterRaw(int discipline,
int category,
int number) |
java.util.List<GribTables.Parameter> |
getParameters() |
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) |
java.lang.String |
getTablePath(int discipline,
int category,
int number) |
java.lang.String |
getTableValue(java.lang.String tableName,
int code) |
java.lang.String |
getVariableName(Grib2Record gr) |
java.lang.String |
getVariableName(int discipline,
int category,
int parameter) |
VertCoord.VertUnit |
getVertUnit(int code)
Unit of vertical coordinate.
|
boolean |
isLayer(Grib2Pds pds) |
boolean |
isLevelUsed(int code) |
static boolean |
isLocal(GribTables.Parameter p) |
void |
lookForProblems(java.util.Formatter f) |
static int |
makeParamId(int discipline,
int category,
int number) |
void |
setTimeUnitConverter(TimeUnitConverter timeUnitConverter) |
protected final Grib2Table grib2Table
protected Grib2Customizer(Grib2Table grib2Table)
public static Grib2Customizer factory(Grib2Record gr) throws java.io.IOException
java.io.IOException
public static Grib2Customizer factory(int center, int subCenter, int masterVersion, int localVersion, int genProcessId)
public static Grib2Customizer factory(Grib2Table grib2Table)
public static int makeParamId(int discipline, int category, int number)
public static boolean isLocal(GribTables.Parameter p)
public java.lang.String getVariableName(Grib2Record gr)
public java.lang.String getVariableName(int discipline, int category, int parameter)
public java.lang.String getTableValue(java.lang.String tableName, int code)
public GribTables.Parameter getParameter(int discipline, int category, int number)
public java.lang.String getSubCenterName(int center_id, int subcenter_id)
getSubCenterName
in interface GribTables
public java.lang.String getGeneratingProcessName(int genProcess)
getGeneratingProcessName
in interface GribTables
public java.lang.String getGeneratingProcessTypeName(int genProcess)
getGeneratingProcessTypeName
in interface GribTables
public java.lang.String getCategory(int discipline, int category)
public void setTimeUnitConverter(TimeUnitConverter timeUnitConverter)
public int convertTimeUnit(int timeUnit)
convertTimeUnit
in interface TimeUnitConverter
public CalendarDate getForecastDate(Grib2Record gr)
public TimeCoord.TinvDate getForecastTimeInterval(Grib2Record gr)
gr
- Grib recordpublic double getForecastTimeIntervalSizeInHours(Grib2Pds pds)
pds
- must be a Grib2Pds.PdsIntervalpublic int[] getForecastTimeIntervalOffset(Grib2Record gr)
gr
- from this recordpublic java.lang.String getStatisticName(int id)
public java.lang.String getStatisticNameShort(int id)
public GribStatType getStatType(int grib2StatCode)
getStatType
in interface GribTables
public java.lang.String getProbabilityNameShort(int id)
public VertCoord.VertUnit getVertUnit(int code)
getVertUnit
in interface GribTables
code
- code from table 4.5public boolean isLevelUsed(int code)
public java.lang.String getLevelName(int id)
public boolean isLayer(Grib2Pds pds)
public java.lang.String getLevelNameShort(int id)
getLevelNameShort
in interface GribTables
public GribTables.Parameter getParameterRaw(int discipline, int category, int number)
public java.lang.String getTablePath(int discipline, int category, int number)
public java.util.List<GribTables.Parameter> getParameters()
public void lookForProblems(java.util.Formatter f)