@Immutable public class Grib2Customizer extends Object implements GribTables, TimeUnitConverter
| Modifier and Type | Class and Description |
|---|---|
static class |
Grib2Customizer.GribTableId |
GribTables.Parameter| Modifier and Type | Field and Description |
|---|---|
protected int |
center |
protected int |
localVersion |
protected int |
masterVersion |
protected int |
subCenter |
| Modifier | Constructor and Description |
|---|---|
protected |
Grib2Customizer(int center,
int subCenter,
int masterVersion,
int localVersion) |
| Modifier and Type | Method and Description |
|---|---|
int |
convertTimeUnit(int timeUnit) |
static Grib2Customizer |
factory(Grib2Record gr) |
static Grib2Customizer |
factory(int center,
int subCenter,
int masterVersion,
int localVersion) |
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(Grib2Record gr)
Get interval size in units of hours
|
String |
getGeneratingProcessName(int genProcess) |
String |
getGeneratingProcessTypeName(int genProcess) |
String |
getIntervalName(int id) |
String |
getIntervalNameShort(int id) |
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 |
getParameters() |
String |
getProbabilityNameShort(int id) |
GribStatType |
getStatType(int grib2StatCode) |
String |
getSubCenterName(int center_id,
int subcenter_id) |
static List<Grib2Customizer.GribTableId> |
getTableIds() |
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) |
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 int center
protected final int subCenter
protected final int masterVersion
protected final int localVersion
protected Grib2Customizer(int center,
int subCenter,
int masterVersion,
int localVersion)
public static Grib2Customizer factory(Grib2Record gr)
public static Grib2Customizer factory(int center, int subCenter, int masterVersion, int localVersion)
public static List<Grib2Customizer.GribTableId> getTableIds()
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 getParameters()
public void lookForProblems(Formatter f)
public CalendarDate getForecastDate(Grib2Record gr)
public TimeCoord.TinvDate getForecastTimeInterval(Grib2Record gr)
gr - Grib recordpublic double getForecastTimeIntervalSizeInHours(Grib2Record gr)
gr - must be an intervalpublic 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 getIntervalName(int id)
public String getIntervalNameShort(int id)
public GribStatType getStatType(int grib2StatCode)
public void setTimeUnitConverter(TimeUnitConverter timeUnitConverter)
public int convertTimeUnit(int timeUnit)
convertTimeUnit in interface TimeUnitConverterpublic String getSubCenterName(int center_id, int subcenter_id)
public String getGeneratingProcessName(int genProcess)
public String getGeneratingProcessTypeName(int genProcess)
public String getCategory(int discipline, int category)
public static void main(String[] args)
Copyright © 1999-2013 UCAR/Unidata. All Rights Reserved.