[gradsusr] error with area average scripts
Sridhara Nayak
sridharanayakiitkgp at gmail.com
Sun Aug 24 12:52:41 EDT 2014
Hi dear,
Plz see the varying variables. It means you can not plot more than a 2D
figure in grads.
Plz see below, I have underlined.
On Sun, Aug 24, 2014 at 9:45 PM, Sahidul <sahidul at gmail.com> wrote:
> Dear sir,
> I want to plot the diurnal variation of the difference between 2 different
> data files averaged over a rectangular area. I am using following script.
> It is showing error like
>
> *Operation error: Invalid dimension environment Too many varying
> dimensions*
>
> ==================
> 'reinit'
> 'clear'
> 'open rh_ncep1.ctl'
> 'open rh_ncep3.ctl'
> 'open rh_ncep3.ctl'
>
> 'set parea 2 10 1.8 7.5'
> * 'set lat 22'* remove this line
> *'set lon 85'* Remove this line
> 'set xlopts 1 6 0.19'
> 'set ylopts 1 6 0.19'
> 'set map 1 1 6'
> *'set t 13 36'* take one time for one plot. I suppose, you want average.
> So plz follow as I have added.
> *'set z 2 14'* same as above, plz try first taking any one z, for
> example, 'set z 2'
> 'set display color white'
> 'set mpdset hires'
> 'set grads off'
> 'set grid off'
> 'set gxout shaded'
> 'set clevs -8 -6 -4 -2 0 2 4 6 8'
>
'define a1= ave(rh.1, t=13, t=36)'
'define a2= ave(rh.2, t=13, t=36)'
> 'd aave((a1-a3),lon=70,lon=100,lat=17,lat=25)'
> 'draw ylab height(km)'
> 'draw title diff RH(%) with height levels'
> 'print file.eps'
> '!convert file.eps ./ncep1_cep3.jpg'
> 'quit'
> ==================
> Please help
>
> -Sahidul
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
Regards
Sridhara
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20140825/3f0ee7b1/attachment.html
More information about the gradsusr
mailing list