[ncl-talk] Month to season and weekly to month errors

Ipshita Majhi ipmajhi at alaska.edu
Wed Oct 8 18:48:48 MDT 2014


Dear NCL,

I am writing a code to convert weekly data to monthly values and then
convert it to calculate say JJA mean.

There are two errors that I encounter:-
1)calculate_monthly_values: there should be more than one element
2)This is unsupported code

;**********************************************************************************
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
;**********************************************************************************


;Reading in the data
a =addfile("~/Documents/Snow_cover_IMS/NCL_codes/sce_area_B.nc","r")
b=addfile("~/Documents/Snow_cover_IMS/nhsce_v01r01_19661004_20140602.nc
","r")

sce=byte2flt(a->B)
lat=b->latitude
lon=b->longitude


sce at lat2d=lat
sce at lon2d=lon

;Now adding area with it

sce_we=sce(:,53:71,38:59);Specific indices for western Europe
xMonthAvg = calculate_monthly_values(sce_we, "avg", 0, False)
xJJA = month_to_season (xMonthAvg, "JJA")
print(xJJA)
;**************************************************************

I will be grateful is someone could shed some light on this.

Best Regards
Ipshita
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20141008/c6691250/attachment.html 


More information about the ncl-talk mailing list