netcdf4-python

Hello,

I'm working with the latest netcdf4-python (svn updated recently). It
has been built with the Netcdf 4.1.1 and HDF 4.2.5 and HDF5 1.8.5
patch libraries. The installation is on Ubuntu 64bit 10.04 LTS.

I get some very strange behavior when trying to read a file, which
actually causes Ipython to close:
In [3]: from netCDF4 import DataSet as NetCDFFile
In [4]: nci = NetCDFFile('100730_tawo_TAWO-var.nc')
python: v1hpg.c:190: v1h_get_nc_type: Assertion `type == NC_BYTE ||
type == NC_CHAR || type == NC_SHORT || type == NC_INT || type ==
NC_FLOAT || type == NC_DOUBLE' failed.
Aborted
$

Does anyone have a suggestion where to look for the root cause of
this? From the searches I've done it seems it is likely related to the
dynamic linking of the libraries at build time.

Thank you,
john

Hi John,

Have you tried pupynere module?
http://pypi.python.org/pypi/pupynere/

https://bitbucket.org/robertodealmeida/pupynere/


Instituto de Oceanografia - FURG

···

Arnaldo D’Amaral Pereira Granja Russo
Lab. de Estudos dos Oceanos e Clima

2012/5/4 John <washakie@…287…>

Hello,

I’m working with the latest netcdf4-python (svn updated recently). It

has been built with the Netcdf 4.1.1 and HDF 4.2.5 and HDF5 1.8.5

patch libraries. The installation is on Ubuntu 64bit 10.04 LTS.

I get some very strange behavior when trying to read a file, which

actually causes Ipython to close:

In [3]: from netCDF4 import DataSet as NetCDFFile

In [4]: nci = NetCDFFile(‘100730_tawo_TAWO-var.nc’)

python: v1hpg.c:190: v1h_get_nc_type: Assertion `type == NC_BYTE ||

type == NC_CHAR || type == NC_SHORT || type == NC_INT || type ==

NC_FLOAT || type == NC_DOUBLE’ failed.

Aborted

$

Does anyone have a suggestion where to look for the root cause of

this? From the searches I’ve done it seems it is likely related to the

dynamic linking of the libraries at build time.

Thank you,

john


Live Security Virtual Conference

Exclusive live event will cover all the ways today’s security and

threat landscape has changed and how IT managers can respond. Discussions

will include endpoint security, mobile security and the latest in malware

threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users