SUBROUTINE AF_PATP ( report, isatp, ieatp, iret ) C************************************************************************ C* AF_PATP * C* * C* This subroutine decodes and stores the aircraft type data from * C* within a PIREP report. * C* * C* AF_PATP ( REPORT, ISATP, IEATP, IRET ) * C* * C* Input parameters: * C* REPORT CHAR* PIREP report * C* ISATP INTEGER Pointer to start of aircraft * C* type data within REPORT * C* IEATP INTEGER Pointer to end of aircraft * C* type data within REPORT * C* * C* Output parameters: * C* CIVALS (ICACTP) CHAR* Type of aircraft * C* IRET INTEGER Return code * C* 0 = normal return * C* * C** * C* Log: * C* J. Ator/NP12 09/96 * C* J. Ator/NP12 10/96 Remove calls to ERRRPT * C* J. Ator/NP12 08/97 New interface format, style changes * C* J. Ator/NCEP 11/99 Declare field variable locally * C************************************************************************ INCLUDE 'GEMPRM.PRM' INCLUDE 'afcmn.cmn' C* CHARACTER*(*) report C* CHARACTER field*(MXLENF) C----------------------------------------------------------------------- iret = 0 itsatp = isatp C CALL AF_GFLD ( report, ieatp, itsatp, field, lenf, ier ) IF ( ier .ne. 0 ) THEN RETURN END IF C IF ( lenf .le. 8 ) THEN lactp = lenf ELSE lactp = 8 END IF civals ( icactp ) = field ( 1 : lactp ) C* RETURN END