LOGICAL FUNCTION UA_EGRP ( field, lenf ) C************************************************************************ C* UA_EGRP * C* * C* This function determines whether a field (i.e. group) that was * C* obtained as output from subroutine UA_GFLD is of a suitable length * C* for decoding. * C* * C* UA_EGRP ( FIELD, LENF ) * C* * C* Input parameters: * C* FIELD CHAR* Field * C* LENF INTEGER Length of FIELD * C* * C** * C* Log: * C* J. Ator/NCEP 03/96 * C* J. Ator/NCEP 10/96 ERRGRP -> UA_EGRP * 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*(*) field C------------------------------------------------------------------------ IF ( ( lenf .lt. MNGDEC ) .or. ( lenf .gt. MXGDEC ) ) THEN UA_EGRP = .true. logmsg = 'group ' // field (1:lenf) // ' was skipped' CALL DC_WLOG ( 2, 'UA', 2, logmsg, ierwlg ) CALL UA_RDCS ( 115, ierrdc ) ELSE UA_EGRP = .false. END IF C* RETURN END