@Immutable
public class Grib1ParamTime
extends java.lang.Object
Constructor and Description |
---|
Grib1ParamTime(Grib1Customizer cust,
Grib1SectionProductDefinition pds)
Handles GRIB-1 code table 5 : "Time range indicator".
|
Grib1ParamTime(Grib1Customizer cust,
int timeRangeIndicator,
boolean isInterval,
int start,
int end,
int forecastTime) |
Modifier and Type | Method and Description |
---|---|
int |
getForecastTime()
Forecast time since reference time in units of timeUnit, only if not an interval.
|
int[] |
getInterval()
Get interval [start, end] since reference time in units of timeUnit, only if an interval.
|
int |
getIntervalSize()
Get interval size (end - start) in units of timeUnit, only if an interval.
|
GribStatType |
getStatType()
The time unit statistical type, derived from code table 5)
|
java.lang.String |
getTimeCoord()
A string representation of the time coordinate, whether its an interval or not.
|
java.lang.String |
getTimeTypeName()
The time unit name (code table 5)
|
static java.lang.String |
getTimeTypeName(int timeRangeIndicator) |
boolean |
isInterval()
Is this an interval time coordinate
|
public Grib1ParamTime(Grib1Customizer cust, int timeRangeIndicator, boolean isInterval, int start, int end, int forecastTime)
public Grib1ParamTime(Grib1Customizer cust, Grib1SectionProductDefinition pds)
cust
- customizerpds
- the Grib1SectionProductDefinitionpublic static java.lang.String getTimeTypeName(int timeRangeIndicator)
public int[] getInterval()
public int getIntervalSize()
public boolean isInterval()
public int getForecastTime()
public java.lang.String getTimeTypeName()
public GribStatType getStatType()
public java.lang.String getTimeCoord()