Hereby I am attaching a new library function named "*season_from_month()*"
This is adapted from D Shea's month_to_seasonN() and month_to_season12()
functions, with some slight difference in script, but enterly different
usage which enables *objective definision of season*.
The previous versions handles only the seasons with 3 month length where as
the new function *season_from_month()* allow user to define the season of
any length objectively. For example Indian summer monsoon season JJAS can be
defined as
jjas = season_from_month (xMon, 6, 9, JJAS)
The function has four arguments.
Arg1 : Numeric type variable carry Data with diamension 1 or 3 or 4
Arg2 : Numeric type variable carry Season starting month
Arg3 : Numeric type variable carry Season ending month
Arg4 : String type variable carry the name of the season
; Compute the seasonal average for user specified seasons.
;
; xMon(time) or xMon(time,lat,lon) or xMon(time,lev,lat,lon)
;
; The input "x" are assumed to contain monthly mean data
; The size of "time" MUST be divisible by 12.
; Also, it is assumed the "Jan" is the 1st month.
;
; first DJF season is a 2-month average (DJF=JF)
;
; USAGE : xSea = season_from_month (xMon, 6, 9, JJAS)
; gives "JJAS : Asian Summer Monsoon Season"
; : xSea = season_from_month (xMon, 10, 12, OND)
; gives "OND : Asian Post-monsoon Season"
; : xSea = season_from_month (xMon, 4, 5, pre-monsoon)
; gives "April-May : Asian Pre-monsoon Season"
;
; RESULT xSea(time/12,lat,lon) or xSea(time/12,lev,lat,lon)
;
; The above would return:
; xSea(time/12,lat,lon) or xSea(time/12,lev,lat,lon)
-- *Gibies George, CSIR-RF, Climate and Global Modelling Division, Indian Institute of Tropical Meteorology, Dr. Homi Bhabha Road, NCL (P. O.), Pashan, Pune 411008, India.* *http://sites.google.com/site/gibiesge/* Think about the environment. Please don't print this e-mail unless it is necessary.
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
This archive was generated by hypermail 2.1.8 : Thu Sep 16 2010 - 11:05:25 MDT