public class Grib2Utils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Grib2Utils.LatLon2DCoord |
static class |
Grib2Utils.LatLonCoordType |
| Constructor and Description |
|---|
Grib2Utils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
clean(String s) |
static String |
cleanupHeader(byte[] raw) |
static ucar.nc2.time.CalendarPeriod |
getCalendarPeriod(int timeUnit) |
static Grib2Utils.LatLon2DCoord |
getLatLon2DcoordType(int discipline,
int category,
int parameter) |
static Grib2Utils.LatLonCoordType |
getLatLon2DcoordType(String desc)
This looks for snippets in the variable name/desc as to whether it wants U, V, or P 2D coordinates
|
static String |
getVariableName(Grib2Record gr) |
static boolean |
isCurvilinearOrthogonal(int gridTemplate,
int center) |
static boolean |
isLatLon(int gridTemplate,
int center) |
static boolean |
isLayer(Grib2Pds pds)
Check to see if this pds is a layer variable
|
public static String cleanupHeader(byte[] raw)
public static String getVariableName(Grib2Record gr)
@Nullable public static ucar.nc2.time.CalendarPeriod getCalendarPeriod(int timeUnit)
public static boolean isLayer(Grib2Pds pds)
pds - record to checkpublic static boolean isLatLon(int gridTemplate,
int center)
public static boolean isCurvilinearOrthogonal(int gridTemplate,
int center)
@Nullable public static Grib2Utils.LatLon2DCoord getLatLon2DcoordType(int discipline, int category, int parameter)
public static Grib2Utils.LatLonCoordType getLatLon2DcoordType(String desc)
desc - variable name/desc