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
Received on Fri May 28 11:46:06 2010
This archive was generated by hypermail 2.1.8 : Tue Jun 01 2010 - 09:12:20 MDT