Hi Sebi
Yes ... thx.
One reason it is "not documented", which means "unsupported", is that it
was not designed for general use. It does what I want
on the data I normally use.
I will put this on my 'list of things to do'
THX again
D
On 05/28/2010 11:46 AM, Sabeerali(sebi) wrote:
> Hi everyone,
>
> The undocumented function "calculate_monthly values" is working
> properly only if we have daily or hourly data from January and December..
> For example, if we have daily data from 1950 April to 1965 july. Then
> this function is not working properly..To work it properly we should
> have data
> from 1950 january to 1965 december...So I made a slight modification to
> the script written by Dennis..Then it works properly...Dennis can give
> more explanation about this..
>
> I changed the line
> NTIM = 12*nyrs
> in to
> NTIM=12*(nyrs-2)+(12-(month(0)-1))+month(ntim-1)
>
>
> Also I changed the following lines
> ;===================================
> N=-1
> do yr=yrStrt,yrLast
> do nmo=0,11
> NT=NT+1
> ;=================================
> in to
>
> N=-1
> do yr=yrStrt,yrLast
> indxStrt=0
> indxEnd=11
>
> if (yr.eq.yrStrt) then
> indxStrt=month(0)-1
> end if
>
> if (yr.eq.yrLast) then
> indxEnd=month(ntim-1)-1
> end if
>
> do nmo=indxStrt,indxEnd
> NT=NT+1
> ;=======================================
>
> I think this would be helpful to others....
>
> --
> **********************************
> Sabeerali
> Climate and Global Modeling Division
> Indian Institute of Tropical Meteorology
> Pashan, Pune, 411 008
> ****************************************
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-- ====================================================== Dennis J. Shea tel: 303-497-1361 | P.O. Box 3000 fax: 303-497-1333 | Climate Analysis Section | Climate & Global Dynamics Div. | National Center for Atmospheric Research | Boulder, CO 80307 | USA email: shea 'at' ucar.edu | ====================================================== _______________________________________________ ncl-talk mailing list List instructions, subscriber options, unsubscribe: http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Fri May 28 13:52:13 2010
This archive was generated by hypermail 2.1.8 : Tue Jun 01 2010 - 09:12:20 MDT