[gradsusr] semi-advanced ave tool use

Rowell, Mason D. Mason.D.Rowell-1 at ou.edu
Wed Jul 20 14:24:52 EDT 2011


Hello Arlindo,

I need to set a different domain center for each of the time periods in the ave function, like say 1 through 124 in your example. As such, the display would then become geographically irrelevant, asides from attaining a since of scale.

Mason
________________________________
From: gradsusr-bounces at gradsusr.org [gradsusr-bounces at gradsusr.org] on behalf of Arlindo da Silva [dasilva at alum.mit.edu]
Sent: Tuesday, July 19, 2011 5:40 PM
To: GrADS Users Forum
Subject: Re: [gradsusr] semi-advanced ave tool use

On Tue, Jul 19, 2011 at 4:36 PM, Rowell, Mason D. <Mason.D.Rowell-1 at ou.edu<mailto:Mason.D.Rowell-1 at ou.edu>> wrote:
Hello Grads community,

I can see from the tutorial that one can open several different case files in grads(file1, file2 etc) and average the data from these files for subsequent display. Is there an advanced option that would allow me to specify the domain for each case and then average them? I was hoping to use this function to easily complete an average of 25 cases or so but relative to some specific type of event, which requires different domain centering for each case prior to averaging.


The ave() functions allows you to make averages over a (x,y,z,t,e) hypercube. Because undef values are skipped, you can have averages over very irregular domains, provided an appropriate mask can be derived either through an expression or by reading it from a file.  For example, to make a time average along satellite swaths we could do

define xmean = ave(x+0*sat.2,t=1,t=124)

where "sat" (on file "2") is some gridded (time dependent) satellite measurement with lots of undefs.

    Arlindo





Mason
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
http://gradsusr.org/mailman/listinfo/gradsusr



--
Arlindo da Silva
dasilva at alum.mit.edu<mailto:dasilva at alum.mit.edu>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110720/009986c7/attachment-0003.html 


More information about the gradsusr mailing list