Re: Error with dim_area_avg

From: Karin Meier-Fleischer <meier-fleischer_at_nyahnyahspammersnyahnyah>
Date: Wed Jul 23 2014 - 14:48:13 MDT

Please send the complete error message.


Am 23.07.2014 um 22:32 schrieb Ipshita Majhi <ipmajhi@alaska.edu>:

> Why is this not working? It says the synatax at Z2 is not correct
>
> ************************************************
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
> ;************************************************
> begin
> ;************************************************
> ; read in netCDF file
> ;************************************************
> a =
=addfile("~/Documents/Snow_cover_IMS/nhsce_v01r01_19661004_20140602.nc",=
"r")
>
> sce=a->snow_cover_extent(0,:,:)
> lat=a->latitude
> lon=a->longitude
>
>
> ;Attaching latitude and longitude to sce
> sce@lat2d=lat
> sce@lon2d=lon
>
> z2 = sce({10:30},{40:60},:,:}) ; select specific region
> delete(sce)
> printVarSummary(z2)
>
> z2Area = wgt_areaave_Wrap(z2,1.0,1.0,0) ; create area-avg. =
timeseries
>
> printVarSummary(z2Area)
>
> z2_za = dim_avg_Wrap(z2) ; create time x lat array
>
> z2_ma = dim_avg_Wrap(z2(time|:,lon|:,lat|:) ; create time x lon =
array
>
> printVarSummary(z2_za)
> printVarSummary(z2_ma)
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk



_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk


Received on Wed Jul 23 08:48:27 2014

This archive was generated by hypermail 2.1.8 : Fri Aug 01 2014 - 15:10:55 MDT