awips2/ncep/gov.noaa.nws.ncep.ui.nsharp/BigNsharp/mapinit.f
root 9f19e3f712 Initial revision of AWIPS2 11.9.0-7p5
Former-commit-id: 64fa9254b946eae7e61bbc3f513b7c3696c4f54f
2012-01-06 08:55:05 -06:00

53 lines
1.3 KiB
Fortran

SUBROUTINE MMAP_INIT ( iret )
C************************************************************************
C* MAP_INIT *
C* *
C* This routine initializes GEMPAK. *
C* *
C* MAP_INIT ( IRET ) *
C* *
C* Output parameters: *
C* IRET INTEGER Return code *
C** *
C* Log: *
C* S. Jacobs/EAI 7/94 *
C* C. Lin/EAI 4/96 GSDEV->GG_MOTF, take out GSFLNM *
C************************************************************************
CHARACTER wname*72
C------------------------------------------------------------------------
C* Initialize GEMPAK data blocks.
C
CALL IN_BDTA ( ier )
C------------------------------------------------------------------------
C* Initialize GEMPAK common blocks
C
CALL IP_INIT ( respnd, iret )
C
C* Initialize grid library common area grdcmn.cmn
C
CALL GD_INIT ( ier )
CALL GG_INIT ( 0, ier )
iostat = 0
C------------------------------------------------------------------------
C
C* Initialize graphics.
C
CALL GG_INIT ( 1, iret )
IF ( iret .eq. 0 ) THEN
C
C* Set device in GEMPLT.
C* If an error is encountered, write GEMPLT error message.
C
wname = 'maptop'
CALL GG_MOTF ( wname, ier )
IF ( ier .ne. 0 ) THEN
CALL ER_WMSG ( 'GEMPLT', ier, ' ', ier2 )
iret = -6
END IF
C
END IF
C*
RETURN
END