SUBROUTINE UA_LDGE ( stnm, iret ) C************************************************************************ C* UA_LDGE * C* * C* This subroutine retrieves data for land station number STNM from the * C* land station table and then stores it in the interface arrays. * C* * C* UA_LDGE ( STNM, IRET ) * C* * C* Input parameters: * C* STNM REAL Land station number * C* * C* Output parameters: * C* CIVALS (ICCOUN) CHAR* Country ID * C* RIVALS (IRSLAT) REAL Latitude in degrees * C* RIVALS (IRSLON) REAL Longitude in degrees * C* RIVALS (IRSELV) REAL Elevation in meters * C* RIVALS (IRWMOR) REAL Region number * C* RIVALS (IRITPD) REAL Instrument type * C* IRET INTEGER Return code: * C* 0 = Normal return * C* -1 = STNM not in table * C** * C* Log: * C* J. Ator/NCEP 03/96 * C* J. Ator/NCEP 06/96 Use IF_BSRH to locate STNM in table * C* J. Ator/NCEP 07/96 IF_BSRH -> UT_BSRH * C* J. Ator/NCEP 12/97 New interface format, style changes * C* J. Ator/NCEP 03/98 Include 'uacmn_stntbl.cmn' * C* J. Ator/NCEP 10/99 Clean up function declarations * C************************************************************************ INCLUDE 'GEMPRM.PRM' INCLUDE 'uacmn.cmn' INCLUDE 'uacmn_stntbl.cmn' C------------------------------------------------------------------------ iret = 0 C C* Locate land station number STNM within the land station table. C CALL DC_BSRH ( INT ( stnm ), ldstnm, nlde, ii, iersrh ) IF ( iersrh .ne. 0 ) THEN iret = -1 RETURN END IF C C* Store the country ID. C civals ( iccoun ) = ldcoun ( ii ) C C* Store the latitude. C rivals ( irslat ) = ldslat ( ii ) C C* Store the longitude. C rivals ( irslon ) = ldslon ( ii ) C C* Store the elevation. C rivals ( irselv ) = ldselv ( ii ) C C* Store the region number. C C* This value is stored in the interface format C* as a code figure from WMO BUFR Table 0 01 003. C rivals ( irwmor ) = FLOAT ( ldregn ( ii ) ) C C* Store the station table instrument type. C C* This value is stored in the interface format C* as a code figure from WMO Code Table 3685. C rivals ( iritpd ) = FLOAT ( ldinst ( ii ) ) C* RETURN END