public final class GempakUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
vertCoords
day of month string
|
Constructor and Description |
---|
GempakUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
ERMISS(float value)
Test for missing value
|
static java.lang.String |
getDataType(int typrt)
Get a name for the data packing type
|
static java.lang.String |
getGridPackingName(int pktyp)
Get a name for the grid packing type
|
static boolean |
LEAP(int iyr)
Check for leap year
|
static java.lang.String |
LV_CCRD(int ivcord)
This subroutine translates a numeric value for IVCORD into its
character value in VCOORD.
|
static java.lang.String |
ST_INCH(int value)
Convert a value to a string
|
static java.lang.String |
ST_ITOC(int value)
Convert the int bits to a string
|
static java.lang.String |
ST_ITOC(int[] values)
Convert the int bits to a string
|
static int |
swp4(int value)
Swap the order of the integer.
|
static int[] |
swp4(int[] values,
int startIndex,
int number)
Swap the order of the integers in place.
|
static java.lang.String[] |
TG_CFTM(int ifcast)
This subroutine converts an integer grid forecast time into
the character forecast type and time.
|
static int[] |
TG_FTOI(int[] iftime,
int start)
This subroutine converts the two integers stored in a grid file
into three integers containing the date, time and forecast time.
|
static java.lang.String |
TG_ITOC(int[] intdtf)
This subroutine converts an integer time array containing the date,
time and forecast time into a GEMPAK grid time.
|
static java.lang.String |
TI_CDTM(int idate,
int itime)
This subroutine converts an integer date (YYMMDD) and time (HHMM)
|
static int |
TI_DAYM(int iyear,
int imon)
This subroutine returns the number of days in the given month.
|
static java.lang.String |
TI_ITOC(int[] idtarr)
This subroutine converts an integer time array into a standard
GEMPAK time.
|
public static int[] TG_FTOI(int[] iftime, int start)
iftime
- input time arraystart
- offset into the arraypublic static java.lang.String TG_ITOC(int[] intdtf)
intdtf
- integer array of date, time and forecast timepublic static java.lang.String[] TG_CFTM(int ifcast)
ifcast
- integer forecast timepublic static java.lang.String TI_CDTM(int idate, int itime)
idate
- integer dateitime
- integer timepublic static java.lang.String TI_ITOC(int[] idtarr)
idtarr
- Time array (YYYY,MM,DD,HH,MM)public static int TI_DAYM(int iyear, int imon)
iyear
- integer yearimon
- integer monthpublic static boolean LEAP(int iyr)
iyr
- year to checkpublic static java.lang.String ST_INCH(int value)
value
- value to convertpublic static java.lang.String ST_ITOC(int value)
value
- value to convertpublic static java.lang.String ST_ITOC(int[] values)
values
- array of values to convertpublic static boolean ERMISS(float value)
value
- value to checkpublic static java.lang.String LV_CCRD(int ivcord)
ivcord
- integer coordinate valuepublic static int swp4(int value)
value
- array of int valuespublic static int[] swp4(int[] values, int startIndex, int number)
values
- array of int valuesstartIndex
- starting index of the arraynumber
- of bytespublic static java.lang.String getGridPackingName(int pktyp)
pktyp
- packing typepublic static java.lang.String getDataType(int typrt)
typrt
- data type