Plotting average wind vector of two years

Charles Seman Charles.Seman at NOAA.GOV
Mon May 9 17:15:24 EDT 2005


Mallikarjun,

One way would be to use "ncra" to average across files, and generate a
new file:

http://nco.sourceforge.net/nco.html#ncra-netCDF-Record-Averager

from the above web site:

-----

Assume the files 85.nc, 86.nc, ... 89.nc each contain a record
coordinate time of length 12 defined such that the third record in 86.nc
contains data from March 1986, etc. NCO knows how to hyperslab the
record dimension across files. Thus, to average data from December, 1985
through February, 1986:

     ncra -d time,11,13 85.nc 86.nc 87.nc 8512_8602.nc
     ncra -F -d time,12,14 85.nc 86.nc 87.nc 8512_8602.nc

The file 87.nc is superfluous, but does not cause an error. The -F turns
on the Fortran (1-based) indexing convention. The following uses the
stride option to average all the March temperature data from multiple
input files into a single output file

     ncra -F -d time,3,,12 -v temperature 85.nc 86.nc 87.nc 858687_03.nc

-----

I hope this helps,
Chuck

Mallikarjun wrote:

>Hello Grads Users,
>
> I have an elementary problem in plotting netcdf data of
>two years. I have uwnd.1999.nc, uwnd.2000.nc and vwnd.1999.nc,
>vwnd.2003.nc. I want to take the average of november 1999 to april
>2000 data and generate the average plot for november 1999 to april 2000.
>
>Could anyone suggest me how to do it.
>
>Thanks in advance,
>
>--
>Mallikarjuna.K
>
>

--

********************************************************************
 Charles Seman                                Charles.Seman at noaa.gov
 U.S. Department of Commerce / NOAA / OAR
 Geophysical Fluid Dynamics Laboratory         voice: (609) 452-6547
 201 Forrestal Road                              fax: (609) 987-5063
 Princeton, NJ  08542                 http://www.gfdl.noaa.gov/~cjs/
********************************************************************

"The contents of this message are mine personally and do not reflect
any position of the Government or NOAA."

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20050509/07db1593/attachment.html 


More information about the gradsusr mailing list