<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><br>Hi,<div><br></div><div>How about using CDO?</div><div><br></div><div>As he has netcdf dataset </div><div><br></div><div><br></div><div>You ca try something like</div><div><br></div><div><br></div><div><font class="Apple-style-span" color="#ff0000">cdo selseas,JJA infile.nc outfile.nc</font></div><div><br></div><div><br></div><div>Regards</div><div><br></div><div><br>--- En date de : <b>Mar 4.10.11, Dennis Shea <i><shea@ucar.edu></i></b> a écrit :<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>De: Dennis Shea <shea@ucar.edu><br>Objet: Re: [ncl-talk] making JJA without using month_to_season function<br>À: "Siraj ul Islam" <sirajkhan78@gmail.com><br>Cc: ncl-talk@ucar.edu<br>Date: Mardi 4 octobre 2011, 21h48<br><br><div
class="plainMail"> yrStrt = 2000<br> yrLast = 2009<br> nyrs = yrLast-yrStrt+1<br><br>; Method 1<br><br> prect_jja = new ( nyrs, "float", "No_FillValue")<br><br> prect = f->PRECT<br><br><br><br>On 10/4/11 1:38 PM, Siraj ul Islam wrote:<br>> Hi all,<br>><br>> This may be a very easy question. I have a ten year monthly data file<br>> and for each year there are only 5 months (May, June, July, August and<br>> Sep.) data. In total my 10 year data has (10 x 5) 50 months. Now I want<br>> to analyze JJA season each year. As all the built in functions<br>> (*clmMonLLT*, month_to_season) in NCL need 12 months data file (time<br>> dimension must be a multiple of 12) and therefore I cannot use them for<br>> my data. Is there any other way to average out JJA each year or to<br>> calculate climatology for
each m</td></tr></table>