GPMAP Example 2 Answer

GPMAP Example 2


2A. Display the IR Image

% gpmap
Creating process: gplt for queue 4650
 MAP       Map color/dash/width              4
 GAREA     Graphics area                     dset
 PROJ      Map projection/angles/margins     rad
 SATFIL    Satellite image filename(s)       
 RADFIL    Radar image filename(s)           $NIDS/BREF1_960220_2300
 LATLON    Line color/dash/width/label/inc   0
 PANEL     Panel loc/color/dash/width/regn   0
 TITLE     Title color/line/title            0
 TEXT      Text size/font/width/hw flag      1
 CLEAR     Clear screen flag                 n
 DEVICE    Dev|name|X;Y|colormode|plotmode   xw
 Parameters requested: MAP,GAREA,PROJ,SATFIL,RADFIL,LATLON,PANEL,TITLE,TEXT,
 CLEAR,DEVICE.
 GEMPAK-GPMAP>map = 2
 GEMPAK-GPMAP>proj = sat 
 GEMPAK-GPMAP>satfil = $GEMPAKHOME/data/IR_910819_1801
 GEMPAK-GPMAP>clear = y
 GEMPAK-GPMAP>title = 5/-2
 GEMPAK-GPMAP>$mapfil = hipowo.gsf
 GEMPAK-GPMAP>r

Creating process: xw for queue 4651
 GPMAP PARAMETERS:
 Device:              xw                                             
 Projection:          sat                                                      
 Graphics area name:  dset                                                      
 Map:                 2                                                        
 Title:               5/-2                                                   
 Panel:               0                                                        
 Latlon:              0                                                    
 Clear:               YES
Enter  to accept parameters or type EXIT:
 Parameters requested: MAP,GAREA,PROJ,SATFIL,RADFIL,LATLON,PANEL,TITLE,TEXT,
 CLEAR,DEVICE.
 GEMPAK-GPMAP>

2B. Now lets get crazy...

 GEMPAK-GPMAP>cursor garea 

After entering the command to get cursor input to GAREA, place the mouse at one corner of the desired region, depress and hold the left mouse button while dragging the mouse pointer to the opposite corner of the region and release the mouse button. This is called Rubber Banding the region.

You should now have a box outlining an area similar to that shown in the answer window above.

Now lets look at what is in our GAREA variable!

 GEMPAK-GPMAP>dis garea 
 GAREA     Graphics area                     31.6;-84.1;52.7;-49.8

Great! I wouldn't have wanted to guess those coordinates.

Now lets finish by displaying Region of Interest.

 GEMPAK-GPMAP>dev = xw|closeup 
 GEMPAK-GPMAP>r
 GPMAP PARAMETERS:
 Device:              xw|closeup               
 Projection:          sat    
 Graphics area name:  31.6;-84.1;52.7;-49.8    
 Map:                 2  
 Title:               5/-2
 Panel:               0                                         
 Latlon:              0                                              
 Clear:               YES
Enter  to accept parameters or type EXIT:
 Parameters requested: MAP,GAREA,PROJ,SATFIL,RADFIL,LATLON,PANEL,TITLE,TEXT,
 CLEAR,DEVICE.
 GEMPAK-GPMAP>e

view window

Cool!

Run GPEND when finished to close both windows, or you can use GPCLOSE to close just the closeup window.

previous page