[gradsusr] How to display averages of multiple variables for same time steps in one map

Rashed Mahmood rashidcomsis at gmail.com
Wed Mar 4 12:36:18 EST 2015


not sure what exactly the problem is but I would suggest a couple
modifications to your script.

I think you should first display "gxout shaded" and then "gxout contour",
otherwise, as in your script, the contours would be covered by the
temperature shading.
I would also suggest commenting or deleting  "set t 21 44'" .
Hope that helps.

On Tue, Mar 3, 2015 at 9:45 AM, Zaib-un- Nisa <zaib.envsc at gmail.com> wrote:

> *Dear Users,*
>
> I am unable to configure where actually the fault lies! i am trying to
> display the average of geopotential height, wind vectors and surface
> temperature in single map. I have combined these variables in one netcdf
> file. I am calculating their averages step by step.Script is as follows;
>
> 'reinit'
> 'sdfopen d:/JRA/oct2004/oct2004.nc'
> 'set display color white'
> 'c'
> 'set lat 23 38'
> 'set lon 58 78'
> 'set z 7'
> 'set e 1'
> 'set t 21 44'
> ***
> 'set vpage 0 11 0 8.5'
> 'set timelab off'
> 'set grads off'
> 'set grid off'
> 'set mpdset hires'
> 'set csmooth on'
> 'set gxout contour'
> 'set cthick 0.5'
> 'set clopts 0.6 0.6 0.15'
> 'set ccolor 1'
> 'define w=ave(hgt,t=21,t=44)'
> 'd w'
> 'set gxout shaded'
> 'define tm1= ave(tmp-273.15,t=21,t=44)'
> *'color -10 40 2 -kind blue->cyan->white->yellow->orange->red->maroon'
> 'd tm1'
> 'set gxout vector'
> 'set arrscl 1 20'
> 'set ccolor 1'
> 'define x = ave(ugrd,t=21,t=44)'
> 'define y = ave(vgrd,t=21,t=44)'
> 'd x;y'
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20150304/83745045/attachment.html 


More information about the gradsusr mailing list