public static String TG_ITOC ( int [ ] intdtf ) { String gdattim = "" ; //Check for the blank time which may be found. if ( ( intdtf [ 0 ] == 0 ) && ( intdtf [ 1 ] == 0 ) && ( intdtf [ 2 ] == 0 ) ) { return gdattim ; } // Put the date and time into the character time. gdattim = TI_CDTM ( intdtf [ 0 ] , intdtf [ 1 ] ) ; // Decode the forecast information if there is any. if ( intdtf [ 2 ] != 0 ) { String [ ] timeType = TG_CFTM ( intdtf [ 2 ] ) ; String ftype = timeType [ 0 ] ; String ftime = timeType [ 1 ] ; // Combine two parts into string. gdattim = gdattim . substring ( 0 , 11 ) + ftype + ftime ; } return gdattim ; }
This subroutine converts an integer time array containing the date time and forecast time into a GEMPAK grid time .