ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> numpy-discussion
numpy-discussion
[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


Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved