[gradsusr] interesting map problem
jon
jon.k.eischeid at noaa.gov
Mon Jul 18 14:09:57 EDT 2016
Hi Folks,
When I use the enclosed script, everything works fine as long as the map
outline is done in black. When
I change the map color to anything other than black, the map outline
does not get masked out, any thoughts?
Regards, Jon.
-------------- next part --------------
'reset'
'set font 1'
'open prism.ppt.3mo_climo.ctl'
'open prism.mask.ctl'
*
it = 1
while(it <= 12)
if(it = 1); 'set vpage 0.5 3.75 5. 7.75'; 'define sum=z.1(t=1)'; endif;
if(it = 2); 'set vpage 3. 6.25 5. 7.75'; 'define sum=z.1(t=2)'; endif;
if(it = 3); 'set vpage 5.5 8.5 5. 7.75'; 'define sum=z.1(t=3)'; endif;
if(it = 4); 'set vpage 7.75 11 5. 7.75'; 'define sum=z.1(t=4)'; endif;
*
if(it = 5); 'set vpage 0.5 3.75 2.75 5.5'; 'define sum=z.1(t=5)'; endif;
if(it = 6); 'set vpage 3. 6.25 2.75 5.5'; 'define sum=z.1(t=6)'; endif;
if(it = 7); 'set vpage 5.5 8.5 2.75 5.5'; 'define sum=z.1(t=7)'; endif;
if(it = 8); 'set vpage 7.75 11 2.75 5.5'; 'define sum=z.1(t=8)'; endif;
*
if(it = 9); 'set vpage 0.5 3.75 0.5 3.25'; 'define sum=z.1(t=9)'; endif;
if(it = 10); 'set vpage 3. 6.25 0.5 3.25'; 'define sum=z.1(t=10)'; endif;
if(it = 11); 'set vpage 5.5 8.5 0.5 3.25'; 'define sum=z.1(t=11)'; endif;
if(it = 12); 'set vpage 7.75 11 0.5 3.25'; 'define sum=z.1(t=12)'; endif;
*
'set map 0 1 3'
'set mproj nps'
'set frame off'
'set grid off'
'set lat 40 49'
'set lon -116 -95'
'set mpdset hires'
'set gxout shaded'
'run wet.color.gs'
'set grads off'
'd maskout(sum*3,mask.2(t=1)-0.5)'
*'missouri.basin.gs'
'mrvb_upper.basin.gs'
if(it = 12)
'run cbarnl.wide.gs 1 0.50 0 5.5 0.3'
endif
it = it + 1
endwhile
*
'set vpage 0 11 0 8.5'
'set string 1 c 5'
'set strsiz 0.10 0.11'
'draw string 5.5 0.65 Climatology (mm)'
'set strsiz 0.13 0.14'
'draw string 2. 7.5 ASO'
'draw string 4.5 7.5 SON'
'draw string 6.8 7.5 OND'
'draw string 9.2 7.5 NDJ'
'draw string 2. 5.2 DJF'
'draw string 4.5 5.2 JFM'
'draw string 6.8 5.2 FMA'
'draw string 9.2 5.2 MAM'
'draw string 2. 2.95 AMJ'
'draw string 4.5 2.95 MJJ'
'draw string 6.8 2.95 JJA'
'draw string 9.2 2.95 JAS'
'set strsiz 0.15 0.16'
'draw string 5.75 8.2 Missouri River Basin Seasonal PPT'
*
'close 2'
'close 1'
More information about the gradsusr
mailing list