|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectucar.nc2.iosp.gempak.GempakUtil
public final class GempakUtil
Class for static GEMPAK utility methods
| Field Summary | |
|---|---|
static String[] |
vertCoords
day of month string |
| Constructor Summary | |
|---|---|
GempakUtil()
|
|
| Method Summary | |
|---|---|
static boolean |
ERMISS(float value)
Test for missing value |
static String |
getDataType(int typrt)
Get a name for the data packing type |
static String |
getGridPackingName(int pktyp)
Get a name for the grid packing type |
static boolean |
LEAP(int iyr)
Check for leap year |
static String |
LV_CCRD(int ivcord)
This subroutine translates a numeric value for IVCORD into its character value in VCOORD. |
static String |
ST_INCH(int value)
Convert a value to a string |
static String |
ST_ITOC(int value)
Convert the int bits to a string |
static 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 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 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 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 String |
TI_ITOC(int[] idtarr)
This subroutine converts an integer time array into a standard GEMPAK time. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String[] vertCoords
| Constructor Detail |
|---|
public GempakUtil()
| Method Detail |
|---|
public static int[] TG_FTOI(int[] iftime,
int start)
iftime - input time arraystart - offset into the array
public static String TG_ITOC(int[] intdtf)
intdtf - integer array of date, time and forecast time
public static String[] TG_CFTM(int ifcast)
ifcast - integer forecast time
public static String TI_CDTM(int idate,
int itime)
idate - integer dateitime - integer time
public static 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 month
public static boolean LEAP(int iyr)
iyr - year to check
public static String ST_INCH(int value)
value - value to convert
public static String ST_ITOC(int value)
value - value to convert
public static String ST_ITOC(int[] values)
values - array of values to convert
public static boolean ERMISS(float value)
value - value to check
public static String LV_CCRD(int ivcord)
ivcord - integer coordinate value
public static int swp4(int value)
value - array of int values
public static int[] swp4(int[] values,
int startIndex,
int number)
values - array of int valuesstartIndex - starting index of the arraynumber - of bytes
public static String getGridPackingName(int pktyp)
pktyp - packing type
public static String getDataType(int typrt)
typrt - data type
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||