[gradsusr] Plotting a gray-filled map and then overlaying variables

Tracey tdorian10 at gmail.com
Fri Apr 19 14:00:42 EDT 2019


Hi Bill,

Thanks so much for your reply.  I tried taking out 'c' but it still doesn't
display the gray map at the end of the script - the map still
disappears for some reason.  I should mention that I am running GrADS Version
2.0.2.

Thanks,
Tracey

On Fri, Apr 19, 2019 at 1:47 PM Bill Reilly <bill_reilly at compuserve.com>
wrote:

> Tracey:
>
> After you've plotted the gray fill you clear the plot using 'c'... The 'c'
> command is 'clear'... Take out that line 'c' and it should work.
>
> Bill
>
> --
>
> Bill Reilly
>
> (+34) 686-110-748
> bill at passageweather.comwww.passageweather.com
> bill at brwebworks.comwww.brwebworks.com
>
> On 19/04/2019 17:51, Tracey wrote:
>
> Hi GrADS users,
>
> I was wondering if anyone knows how to plot a map with gray fill, and then
> overlay fields over the gray map?  When I run my GrADS script, the gray map
> appears briefly and then disappears completely and I am left with only the
> plotted fields and no map.  I've tried placing the "basemap" lines in
> multiple places, but nothing seems to work.  Are the order of steps in my
> script incorrect?
>
> For example, in my script I have:
>
> 'set display color white'
>
> 'c'
>
> 'set grads off'
>
> 'set grid off'
>
> 'set mpdraw off'
>
>
> 'open gfs.ctl'
>
>
> 'set mpdset hires'
>
> 'set mproj latlon'
>
> 'set frame on'
>
>
> 'set lat 20 55'
>
> 'set lon -130 -60'
>
>
> 'set gxout contour'
>
> 'set clevs 0'
>
> 'set ccolor 0'
>
> 'd MSLETmsl'
>
>
> '! cp /directory/with/asc/files/*.asc .'
>
>
> 'set rgb 17 220 220 220'
>
> 'basemap L 17 17 L'
>
> 'set rgb 16 180 180 220'
>
> 'basemap O 0 0 L'
>
> 'printim bg.png'
>
>
> 'c'
>
>
> 'set gxout shaded'
>
> 'set lev 500'
>
> 'd abs(ABSVprs*(10*10*10*10*10))'
>
>
> 'set gxout contour'
>
> 'set lev 500'
>
> 'set cint 60'
>
> 'set ccolor 1'
>
> 'set clab off'
>
> 'set cthick 1'
>
> 'set cstyle 1'
>
> 'set csmooth on'
>
> 'set ccolor 1'
>
> 'd HGTprs'
>
>
> 'printim test.png -b bg.png -t 0'
>
>
>
> Thanks in advance for any advice,
>
> Tracey
>
> _______________________________________________
> gradsusr mailing listgradsusr at gradsusr.orghttp://gradsusr.org/mailman/listinfo/gradsusr
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>


-- 
Tracey⚡
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20190419/9af18326/attachment.html>


More information about the gradsusr mailing list