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

83 lines
2.2 KiB
Fortran

SUBROUTINE MAP_DRAW ( map, garea, proj, latlon, panel, text,
+ title, ititl, linttl, shrttl,
+ clear, iret )
C************************************************************************
C* MAP_DRAW *
C* *
C* This subroutine draws a map, lat/lon lines, and a title. *
C* *
C* MAP_DRAW ( MAP, GAREA, PROJ, LATLON, PANEL, TEXT, TITLE, *
C* ITITL, LINTTL, SHRTTL, CLEAR, IRET ) *
C* *
C* Input parameters: *
C* MAP CHAR* Map Color *
C* GAREA CHAR* Graphics area *
C* PROJ CHAR* Map projection name *
C* LATLON CHAR* Line color *
C* PANEL CHAR* Panel location *
C* TEXT CHAR* Text input *
C* TITLE CHAR* Title string *
C* ITITL INTEGER Title color *
C* LINTTL INTEGER Title line *
C* SHRTTL CHAR* Short title string *
C* CLEAR LOGICAL Clear screen flag *
C* *
C* Output parameters: *
C* IRET INTEGER Return code *
C** *
C* Log: *
C* L. Williams/EAI 4/94 Converted to a subroutine from GPMAP *
C* S. Jacobs/NMC 7/94 Copied for use with the NWX program *
C************************************************************************
CHARACTER*(*) map, garea, proj, latlon, panel, text,
+ title, shrttl
LOGICAL clear
C*
CHARACTER satfil*132
LOGICAL drpflg
C------------------------------------------------------------------------
iret = 0
C
C* Set the map file.
C
C-- CALL GSMFIL ( 'mepowo.gsf', ier )
CALL GSMFIL ( 'hipowo.cia', ier )
IF ( ier .ne. 0 ) CALL ER_WMSG ( 'GEMPLT', ier, ' ', ierr )
C
C* Set the projection.
C
satfil = ''
drpflg = .false.
CALL GG_MAPS ( proj, garea, satfil, drpflg, iret )
IF ( iret .ne. 0 ) RETURN
C
C* Set the text attributes.
C
CALL IN_TEXT ( text, ier )
C
C* Clear the screen and write the short title.
C
IF ( clear ) CALL GCLEAR ( ier )
IF ( clear ) CALL GMESG ( shrttl, ier )
CALL GG_PANL ( panel, ier )
C
C* Display satellite image, if desired.
C
IF ( drpflg ) CALL GSATIM ( satfil, ier )
C
C* Draw map and lat/lon lines.
C
CALL GG_MAP ( map, ier )
CALL GG_LTLN ( latlon, ier )
C
C* Draw the title.
C
CALL GSCOLR ( ititl, ier )
CALL GG_WSTR ( title, linttl, ier )
C
C* Flush the buffers.
C
CALL GEPLOT ( ier )
C*
RETURN
END