[SciPy-dev] netcdf supported?

Neal Becker ndbecker2 at gmail.com
Wed Mar 8 16:54:10 EST 2006


Jeff Whitaker wrote:

> Neal Becker wrote:
> 
>>Does numpy-0.9.5/scipy-0.6.4 support netcdf?
>>
>>
>>  
>>
> Neal:  No, but I've got a netcdf module that supports numpy
> 
> http://www.cdc.noaa.gov/people/jeffrey.s.whitaker/python/netCDF4.html
> 
> -Jeff
> 

Thanks, Jeff.  I'm having some trouble installing this, though.  I
built/installed the latest netcdf4, which is netcdf-4.0-alpha13, and then I
get this, any ideas?:

building 'netCDF4' extension
compiling C sources
gcc options: '-pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fPIC'
compile options: '-I/usr/include
-I/usr/lib64/python2.4/site-packages/numpy/core/include
-I/usr/include/python2.4 -c'
gcc: netCDF4.c
netCDF4.c: In function ‘__pyx_f_7netCDF4__get_grps’:
netCDF4.c:237: warning: implicit declaration of function ‘nc_inq_grps’
netCDF4.c:302: warning: implicit declaration of function ‘nc_inq_grpname’
netCDF4.c:347: warning: label ‘__pyx_L6’ defined but not used
netCDF4.c:345: warning: label ‘__pyx_L5’ defined but not used
netCDF4.c: In function ‘__pyx_f_7netCDF4__get_dims’:
netCDF4.c:447: warning: implicit declaration of function ‘nc_inq_dimids’
netCDF4.c:535: warning: label ‘__pyx_L9’ defined but not used
netCDF4.c:533: warning: label ‘__pyx_L8’ defined but not used
netCDF4.c:479: warning: label ‘__pyx_L7’ defined but not used
netCDF4.c:477: warning: label ‘__pyx_L6’ defined but not used
netCDF4.c: In function ‘__pyx_f_7netCDF4__get_vars’:
netCDF4.c:699: warning: implicit declaration of function ‘nc_inq_varids’
netCDF4.c:803: warning: implicit declaration of function ‘nc_inq_user_type’
netCDF4.c:822: error: ‘NC_VLEN’ undeclared (first use in this function)
netCDF4.c:822: error: (Each undeclared identifier is reported only once
netCDF4.c:822: error: for each function it appears in.)
[lots more...]




More information about the SciPy-Dev mailing list