public class GribUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CENTER |
static java.lang.String |
GEN_PROCESS |
static java.lang.String |
SUBCENTER |
static java.lang.String |
TABLE_VERSION |
Constructor and Description |
---|
GribUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
cleanupDescription(java.lang.String desc) |
static java.lang.String |
cleanupUnits(java.lang.String unit) |
static CalendarPeriod |
getCalendarPeriod(int timeUnit)
Convert a time unit to a CalendarPeriod
GRIB1 and GRIB2 are the same (!)
|
static CalendarDate |
getValidTime(CalendarDate refDate,
int timeUnit,
int offset) |
static java.lang.String |
makeNameFromDescription(java.lang.String desc) |
static boolean |
scanModeSameDirection(int scanMode)
All rows scan in the same/opposite direction.
|
static boolean |
scanModeXisConsecutive(int scanMode)
Adjacent points in x or y direction are consecutive.
|
static boolean |
scanModeXisPositive(int scanMode)
X Points scan in +/- direction.
|
static boolean |
scanModeYisPositive(int scanMode)
Y Points scan in +/- direction.
|
static java.lang.String |
stackTraceToString(java.lang.StackTraceElement[] stackTrace) |
public static final java.lang.String CENTER
public static final java.lang.String SUBCENTER
public static final java.lang.String GEN_PROCESS
public static final java.lang.String TABLE_VERSION
public static CalendarPeriod getCalendarPeriod(int timeUnit)
timeUnit
- (GRIB1 table 4) (GRIB2 Code table 4.4 : Indicator of unit of time range)public static CalendarDate getValidTime(CalendarDate refDate, int timeUnit, int offset)
public static java.lang.String cleanupUnits(java.lang.String unit)
public static java.lang.String cleanupDescription(java.lang.String desc)
public static java.lang.String makeNameFromDescription(java.lang.String desc)
public static boolean scanModeXisPositive(int scanMode)
scanMode
- scanMode bytepublic static boolean scanModeYisPositive(int scanMode)
scanMode
- scanMode bytepublic static boolean scanModeXisConsecutive(int scanMode)
scanMode
- scanMode bytepublic static boolean scanModeSameDirection(int scanMode)
scanMode
- scanMode bytepublic static java.lang.String stackTraceToString(java.lang.StackTraceElement[] stackTrace)