SUBROUTINE UA_DPBD ( report, lenr, irptr, iret ) C************************************************************************ C* UA_DPBD * C* * C* This subroutine decodes pilot BB and pilot DD reports. * C* * C* UA_DPBD ( REPORT, LENR, IRPTR, IRET ) * C* * C* Input parameters: * C* REPORT CHAR* Pilot AA or pilot CC report * C* LENR INTEGER Length of REPORT * C* * C* Input and output parameters: * C* IRPTR INTEGER Pointer within REPORT * C* * C* Output parameters: * C* IRET INTEGER Return code: * C* 0 = normal return * C* -1 = critical error in REPORT * C* or reached end of REPORT * C** * C* Log: * C* J. Ator/NCEP 03/96 * C* J. Ator/NCEP 12/97 New interface format, style changes * C* J. Ator/NCEP 10/99 Clean up function declarations * C************************************************************************ INCLUDE 'GEMPRM.PRM' INCLUDE 'uacmn.cmn' C* CHARACTER*(*) report C------------------------------------------------------------------------ iret = 0 C C* Decode the significant level wind data. C idx = INDEX ( report ( irptr : lenr ), '21212' ) IF ( idx .eq. 0 ) THEN C C* The data is reported by height. C CALL UA_PSLV ( report, lenr, irptr, iret ) ELSE C C* The data is reported by pressure. C CALL UA_TSLV ( report, lenr, irptr, iret ) END IF IF ( iret .lt. 0 ) THEN RETURN END IF C C* Decode the regional practice data. C CALL UA_REGP ( report, lenr, irptr, iret ) IF ( iret .lt. 0 ) THEN RETURN END IF C C* Decode the national practice data. C CALL UA_NATP ( report, lenr, irptr, iret ) C* RETURN END