[gradsusr] Looping dimension does not vary

Davide Sacchetti davide.sacchetti at arpal.gov.it
Mon Mar 14 06:29:11 EDT 2016


just set lon
e.g.: 'set lon 0'

p.s.:I'm not sure but it is possible you count twice ugrdprs(lon=0)
using ave(ugrdprs,lon=0,lon=360). Suppose your dlon is one: best is
ave(ugrdprs,lon=0,lon=359)

Bye bye
Davide


On Sat, 2016-03-12 at 20:44 +0000, Thomas Davies wrote:
> Hi,
> 
> 
> I am having problems plotting a map of zonal winds from 0 to 90N and
> from 1000mb to 10mb, averaged from lon 0 to lon 360. Like the map
> below:
> 
> 
> Inline image 1
> 
> This is part of my script:
> 
> 
> 'set z 1 26'
> 'set lat 0 90'
> 'set t 50'
> 'd ave(ugrdprs,lon=0,lon=360)'
> 
> 
> And the error:
> 
> 
> Operation error:  Invalid dimension environment
>   Looping dimension does not vary
> 
> 
> 
> 
> I'm not sure exactly what I'm doing wrong.. Any help would be greatly
> appreciated.
> 
> 
> 
> 
> 
> 
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr





More information about the gradsusr mailing list