<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Mallikarjun,<br>
<br>
One way would be to use "ncra" to average across files, and generate a
new file:<br>
<br>
<a class="moz-txt-link-freetext" href="http://nco.sourceforge.net/nco.html#ncra-netCDF-Record-Averager">http://nco.sourceforge.net/nco.html#ncra-netCDF-Record-Averager</a><br>
<br>
from the above web site:<br>
<br>
-----<br>
<p>Assume the files <span class="file">85.nc</span>, <span
class="file">86.nc</span>, <small class="dots">...</small> <span
class="file">89.nc</span><!-- /@w -->
each contain a record coordinate <var>time</var> of length 12 defined
such
that the third record in <span class="file">86.nc</span> contains data
from March 1986,
etc. <acronym>NCO</acronym> knows how to hyperslab the record
dimension across files. Thus, to average data from December, 1985
through February, 1986:
</p>
<pre class="example"> 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
</pre>
<p class="noindent">The file <span class="file">87.nc</span> is
superfluous, but does not cause an error. The <span class="samp">-F</span>
turns on the Fortran (1-based) indexing convention. <a
name="index-stride-943"></a>The following uses the <var>stride</var>
option to average all the March
temperature data from multiple input files into a single output file
</p>
<pre class="example"> ncra -F -d time,3,,12 -v temperature 85.nc 86.nc 87.nc 858687_03.nc
</pre>
-----<br>
<br>
I hope this helps,<br>
Chuck<br>
<br>
Mallikarjun wrote:
<blockquote
cite="midPine.LNX.4.44.0504271532030.12450-100000@caos.iisc.ernet.in"
type="cite">
<pre wrap="">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
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
********************************************************************
Charles Seman <a class="moz-txt-link-abbreviated" href="mailto:Charles.Seman@noaa.gov">Charles.Seman@noaa.gov</a>
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 <a class="moz-txt-link-freetext" href="http://www.gfdl.noaa.gov/~cjs/">http://www.gfdl.noaa.gov/~cjs/</a>
********************************************************************
"The contents of this message are mine personally and do not reflect
any position of the Government or NOAA."
</pre>
</body>
</html>