[Numpy-discussion] Possible NetCDF bug...
by Chris Barker other posts by this author
Dec 30 2002 11:56PM messages near this date
[Numpy-discussion] PEP 242 Numeric kinds
|
[Numpy-discussion] Another nice write-up about floating point issues.
Hi all,
Does anyone here use Konrad Hinsen's NetCDF module? I'm having a problem
with it.
I opened an existing NetCDF file and examine one of it's variables:
file = NetCDF.NetCDFFile("test.cdf")
> >> file.variables['water_u'].typecode()
'f'
The variable appears to contain float data (which I think it does).
However, when I try to get a slice of that data:
array([3199453293L, 3198428385L], 'u')
Numeric appears to think it's an unsigned 32 bit integer variable. I get
the same result if I use file.getValue() as well.
Could this be a Numeric version mismatch? I couldn't find a recommended
version of Numeric on the Scientific site.
RedHat Linux 7.2
Python2.2.1
Numeric 22.0
I've enclosed my test.cdf file, if you want to test it yourself.
Anyone have any ideas?
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker@[...].gov
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@[...].net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion
Thread:
Paul F Dubois
Chris Barker
Chris Barker
Chris Barker
=?iso-8859-15?Q?Jos=E9?= Fonseca
=?iso-8859-15?Q?Jos=E9?= Fonseca
Raymond Hettinger
Raymond Hettinger
Brett Cannon
Michael McLay
Michael McLay
|