Error in month_to_annual function

From: guangshan chen <gchen9_at_nyahnyahspammersnyahnyah>
Date: Thu Apr 21 2011 - 01:11:37 MDT

Dear there,

There is an error in month_to_annual function.

The version I used is 5.2.0.

The error message is:
fatal:mask: dimension sizes of parameter 0 and parameter 1 do not match
fatal:Execute: Error occurred at or near line 8537 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl

I checked that line. The error is caused by that xAnnual(nyr,:,:) and nGood has different dimension sizes.

It is clearly that the dimension of nGood is (time,lat), which is not as the supposed one (lat, lon).

I think the easy way to fix it is to change the following line
nGood = dim_num(.not.ismissing( xTemp ) )
to
nGood = dim_num_n(.not.ismissing( xTemp ), 0 )

The error will happen if rankx is great than 1.

Please check!

Thanks.

--Guangshan

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Apr 21 01:11:50 2011

This archive was generated by hypermail 2.1.8 : Tue May 03 2011 - 14:47:35 MDT