@Immutable public class Grib2Customizer extends 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) |
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
|
String |
getGeneratingProcessName(int genProcess) |
String |
getGeneratingProcessTypeName(int genProcess) |
String |
getLevelName(int id) |
String |
getLevelNameShort(int id) |
GribTables.Parameter |
getParameter(int discipline,
int category,
int number) |
GribTables.Parameter |
getParameterRaw(int discipline,
int category,
int number) |
List<GribTables.Parameter> |
getParameters() |
String |
getProbabilityNameShort(int id) |
String |
getStatisticName(int id) |
String |
getStatisticNameShort(int id) |
GribStatType |
getStatType(int grib2StatCode) |
String |
getSubCenterName(int center_id,
int subcenter_id) |
String |
getTablePath(int discipline,
int category,
int number) |
String |
getTableValue(String tableName,
int code) |
String |
getVariableName(Grib2Record gr) |
String |
getVariableName(int discipline,
int category,
int parameter) |
VertCoord.VertUnit |
getVertUnit(int code) |
static boolean |
isLocal(GribTables.Parameter p) |
void |
lookForProblems(Formatter f) |
static void |
main(String[] args) |
static int |
makeHash(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 IOException
IOExceptionpublic static Grib2Customizer factory(int center, int subCenter, int masterVersion, int localVersion, int genProcessId)
public static Grib2Customizer factory(Grib2Table grib2Table)
public static int makeHash(int discipline,
int category,
int number)
public static boolean isLocal(GribTables.Parameter p)
public String getVariableName(Grib2Record gr)
public String getVariableName(int discipline, int category, int parameter)
public GribTables.Parameter getParameter(int discipline, int category, int number)
public GribTables.Parameter getParameterRaw(int discipline, int category, int number)
public String getTablePath(int discipline, int category, int number)
public List<GribTables.Parameter> getParameters()
public void lookForProblems(Formatter f)
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 String getLevelName(int id)
public String getLevelNameShort(int id)
getLevelNameShort in interface GribTablespublic String getProbabilityNameShort(int id)
public String getStatisticName(int id)
public String getStatisticNameShort(int id)
public GribStatType getStatType(int grib2StatCode)
getStatType in interface GribTablespublic VertCoord.VertUnit getVertUnit(int code)
getVertUnit in interface GribTablespublic void setTimeUnitConverter(TimeUnitConverter timeUnitConverter)
public int convertTimeUnit(int timeUnit)
convertTimeUnit in interface TimeUnitConverterpublic String getSubCenterName(int center_id, int subcenter_id)
getSubCenterName in interface GribTablespublic String getGeneratingProcessName(int genProcess)
public String getGeneratingProcessTypeName(int genProcess)
public String getCategory(int discipline, int category)
public static void main(String[] args)
Copyright © 1999–2015 UCAR/Unidata. All rights reserved.