Closed GoogleCodeExporter closed 9 years ago
Rich: Confirmed, error occurs with this simple program:
import netCDF4
nc=netCDF4.Dataset('http://www.smast.umassd.edu:8080/thredds/dodsC/fvcom/hindcas
ts/wave_gom3')
nco=netCDF4.Dataset('dummy.nc', 'w', format='NETCDF3_64BIT')
nc2=netCDF4.Dataset('http://www.smast.umassd.edu:8080/thredds/dodsC/fvcom/hindca
sts/30yr_gom3')
It's actually a library bug. I've uploaded a c program (analagous to the one
above) that triggers it. I'll open a ticket with unidata.
Original comment by whitaker.jeffrey@gmail.com
on 13 Mar 2013 at 3:14
Attachments:
Unidata bug tracker:
https://bugtracking.unidata.ucar.edu/browse/NCF-243#comment-12102
In the meantime, I've committed a workaround for this in svn.
Original comment by whitaker.jeffrey@gmail.com
on 14 Mar 2013 at 9:20
From the unidata ticket. Should be fixed in the 4.3.0 release. The workaround
in the python interface is pretty harmless (with very little overhead), so
using older versions of netcdf should be fine.
Fixed in revision 3069.
Should be in snapshot of 3/16/2013
Problem was that the NC_create
code was not checking for the NC_CLASSIC_MODEL
mode flag in deciding what dispatch table to use.
This meant that it was then defaulting to use
the default format, and if that was changed
to e.g. NC_FORMAT_NETCDF4, then it would try
to create a netcdf-4 format file, even if
NC_CLASSIC_MODEL mode flag was set.
=Dennis Heimbigner
Unidata
Original comment by whitaker.jeffrey@gmail.com
on 15 Mar 2013 at 8:51
Original comment by whitaker.jeffrey@gmail.com
on 26 Feb 2014 at 2:04
Original issue reported on code.google.com by
rsignell
on 13 Mar 2013 at 11:55Attachments: