Re: Is this a bug or special setting?

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Tue Mar 15 2011 - 10:27:55 MDT

Yes, you are correct. That is a bug.
It will be fixed in 6.0.0.
The documentation [Example 1] will be changed.

If you have control of contributed.ncl the fixe is to
eliminate the /180.0 and /180.d0

Otherwise, extract the code from contributed.ncl, make the changes
and put in it a file (say) fixed.ncl (make sure there is an
undef ("genNormalDist")
in the fixed code.

load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
load "./fixed.ncl"

then call the function

On 3/15/11 10:10 AM, cheung wrote:
> dear all:
>
> The genNormalDist function in the contributed.ncl , when it
> comes to calculate pi, it uses 4*atan(1.0)/180.0, but actually it should
> be 4*atan(1.0). I found this when I generate a standardized normal
> distribution but the value at x=0 is 5+.
>
> best regards
>
> Cheung
>
>
>
> _______________________________________________
> 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 Tue Mar 15 10:28:00 2011

This archive was generated by hypermail 2.1.8 : Wed Mar 16 2011 - 09:22:37 MDT