Re: Error in month_to_annual function

From: Guangshan Chen <gchen9_at_nyahnyahspammersnyahnyah>
Date: Thu Apr 21 2011 - 08:41:02 MDT

Dear Dennis shea,

Thanks.

Guangshan

On Apr 21, 2011, at 2:42 AM, Dennis Shea wrote:

> This was fixed in 5.2.1
>
> http://www.ncl.ucar.edu/prev_releases.shtml#5.2.1
>
> Please download the newer version.
> You may wish to consider 6.0.0-beta
>
> D
>
> On 4/21/11 1:11 AM, guangshan chen wrote:
>> 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

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

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