Re: making JJA without using month_to_season function

From: louis Vonder <appopson_at_nyahnyahspammersnyahnyah>
Date: Wed Oct 05 2011 - 04:57:38 MDT

Hi,
How about using CDO?
As he has netcdf  dataset 

You ca try something like

cdo selseas,JJA   infile.nc  outfile.nc

Regards

--- En date de : Mar 4.10.11, Dennis Shea <shea@ucar.edu> a écrit :

De: Dennis Shea <shea@ucar.edu>
Objet: Re: [ncl-talk] making JJA without using month_to_season function
À: "Siraj ul Islam" <sirajkhan78@gmail.com>
Cc: ncl-talk@ucar.edu
Date: Mardi 4 octobre 2011, 21h48

   yrStrt = 2000
   yrLast = 2009
   nyrs   =  yrLast-yrStrt+1

; Method 1

   prect_jja   = new ( nyrs, "float", "No_FillValue")

   prect  = f->PRECT

On 10/4/11 1:38 PM, Siraj ul Islam wrote:
> Hi all,
>
> This may be a very easy question. I have a ten year monthly data file
> and for each year there are only 5 months (May, June, July, August and
> Sep.) data. In total my 10 year data has (10 x 5) 50 months. Now I want
> to analyze JJA season each year. As all the built in functions
> (*clmMonLLT*, month_to_season) in NCL need 12 months data file (time
> dimension must be a multiple of 12) and therefore I cannot use them for
> my data. Is there any other way to average out JJA each year or to
> calculate climatology for each m

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Oct 5 04:57:48 2011

This archive was generated by hypermail 2.1.8 : Sun Oct 09 2011 - 13:05:26 MDT