|
From: Michael R. <raw...@ya...> - 2012-09-22 00:59:37
|
>________________________________ > From: Damon McDougall <dam...@gm...> >To: Michael Rawlins <raw...@ya...> >Cc: "mat...@li..." <mat...@li...> >Sent: Friday, September 21, 2012 2:50 PM >Subject: Re: [Matplotlib-users] netcdf4-python build > > > > >From what I remember dealing with the netcdf c library, you have to explicitly set a compile flag to enable hdf5 support. That was a while ago, though. I'm not sure if things have changed. > > >Hope this helps. > > > > >I did not do a source compile. > >I've reinstalled libhdf5-serial-1.8.4 package and now have the right HDF5 library files. Successfully built and installed netCDF4-1.0. My script loads in module but a read/write issue is present. This is code that worked on previous system. Error: > > File "test.py", line 96, in <module> > data.missing_value=-9.99 > File "netCDF4.pyx", line 2570, in netCDF4.Variable.__setattr__ (netCDF4.c:28242) > File "netCDF4.pyx", line 2392, in netCDF4.Variable.setncattr (netCDF4.c:26309) > File "netCDF4.pyx", line 1013, in netCDF4._set_att (netCDF4.c:12699) >AttributeError: NetCDF: Write to read only > > >The statement in the code triggers the error. > >data.missing_value=-9.99 . > >MR > |