[gradsusr] average over list of t not range

Jeffrey Duda jdduda at iastate.edu
Tue May 17 16:01:10 EDT 2011


James,
If your list of times is truly irregular (i.e., there is no mathematical
pattern that can be used to shorthand the list, even if pointwise) then you
will have to list out each of the times or files to get your average.

Jeff Duda

On Tue, May 17, 2011 at 2:41 PM, James Ciarlo` <james.ciarlo at physics.org>wrote:

> you misunderstand me. I have two files, uwind.nc, vwind.nc and I want to
> produce a spatial plot (lon = 35 68, lat = 0 75) of u;v for each of these
> time values and average out the result. I have more lists, so typing out
> define for each time value and then using x+y+...+z/n is not really a good
> option
>
> can anyone help me out?
>
> On 17 May 2011 17:51, saeed bayat <saeedbayat7276 at gmail.com> wrote:
>
>> Hi James
>> If you work in linux environment, you can use these command for create a
>> file with time series or a file that is average of several files:
>> for make a file include average all of files: ncra 1.nc 2.nc 3 .nc 4.nc
>> 5.nc  output.nc
>> for create a file include time series of all files: ncrcat 1.nc 2.nc 3.nc
>> 4.nc output.nc
>>
>> regards
>>
>> Saeed Bayat
>> M.Sc Student of Climatology
>> Ferdowsi University of Mashhad(Iran)
>> saeedbayat7276 at gmail.com
>>
>> On Tue, May 17, 2011 at 12:49 PM, James Ciarlo` <james.ciarlo at physics.org
>> > wrote:
>>
>>> Dear gradsusrs,
>>>
>>> I want to produce the average of several irregular lists of time stamps
>>> for u and v wind. Now I know that normally one can use d
>>> ave(u,time=00Z01JAN1985,time=00Z01JAN1990) for example but I want to
>>> consider only the dates listed below. How can I do this?
>>>
>>> 00Z01AUG1984
>>> 00Z01OCT1986
>>> 00Z01DEC1989
>>> 00Z01JUL1990
>>> 00Z01DEC1992
>>> 00Z01FEB1993
>>> 00Z01FEB1994
>>> 00Z01JUN1995
>>> 00Z01APR1998
>>> 00Z01SEP1998
>>> 00Z01MAY2001
>>> 00Z01JUN2001
>>> 00Z01NOV2007
>>> 00Z01APR2008
>>> 00Z01NOV2008
>>> 00Z01FEB2009
>>> 00Z01JUL2009
>>>
>>>
>>> Regards,
>>>
>>> James
>>>
>>> _______________________________________________
>>> gradsusr mailing list
>>> gradsusr at gradsusr.org
>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>
>>>
>>
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>>
>>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>


-- 
Jeff Duda
Iowa State University
Meteorology Graduate Student
3134 Agronomy Hall
www.meteor.iastate.edu/~jdduda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110517/697ce1bc/attachment-0003.html 


More information about the gradsusr mailing list