fspan (problem?)

From: <xavier_at_nyahnyahspammersnyahnyah>
Date: Fri, 16 Nov 2007 17:23:21 +0100 (CET)

Hi all,

For a few days I'm working on a Windows Cygwin installation of NCL on my
home PC. I am getting a strange error from fspan, which I think never
happened on my linux PC!

        x = fspan(-1.0,1.0,11)
        print(x)

gives

Variable: x
Type: float
Total Size: 44 bytes
            11 values
Number of Dimensions: 1
Dimensions and sizes: [11]
Coordinates:
(0) -1
(1) -0.8
(2) -0.6
(3) -0.4
(4) -0.2
(5) 1.490116e-08
(6) 0.2
(7) 0.4
(8) 0.6
(9) 0.8
(10) 1

I am expecting a 'zero' as the 6th element of the array, but can't figure
out what this '1.490116e-08' is doing here!

could someone help?

Prince
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Nov 16 2007 - 09:23:21 MST

This archive was generated by hypermail 2.2.0 : Sun Nov 25 2007 - 07:21:25 MST