fill value bug?

From: Michael Notaro <mnotaro_at_nyahnyahspammersnyahnyah>
Date: Fri, 20 Mar 2009 09:45:23 -0500

I seem to be encountering a bug. Imagine I have an array, a, with
6 values. And I specify that -9999 is the FillValue. Then a value
of -999 should not be considered missing. However, after using
int2flt on a, then it converts the -999 into -9999, missing.

a=(/123,345,678,-9999,-999,246/)
a@_FillValue=-9999
b=int2flt(a)
print(b)

(0) 123
(1) 345
(2) 678
(3) -9999
(4) -9999
(5) 246

This is a work-around:

a=(/123,345,678,-9999,-999,246/)
a@_FillValue=-9999
b=a*1.
print(b)

(0) 123
(1) 345
(2) 678
(3) -9999
(4) -999
(5) 246

Any idea what's wrong here?
Mike
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Mar 20 2009 - 08:45:23 MDT

This archive was generated by hypermail 2.2.0 : Fri Mar 20 2009 - 10:31:52 MDT