Closed GoogleCodeExporter closed 8 years ago
Confirmed. The problem goes away if the time dimension is not unlimited, for
example is you use
root.createDimension('time',20)
Don't know yet whether this is a bug in the C library or the python module.
Variable length string arrays have not gotten much use.
Original comment by josh.n.w...@gmail.com
on 25 Dec 2012 at 3:06
Seems like a library bug to me. Don't see any way to work around it with the
python interface.
Original comment by josh.n.w...@gmail.com
on 26 Dec 2012 at 2:08
there are two possible reasons:
1) when createVariable() with str type, a fill value can not be given.
2) in function _get in netcdf4.pyx, decode raise error because there's no fill
value with str type.
data[i] = strdata[i].decode(default_encoding)
--strdata[i] is not str type
Original comment by shuwen...@gmail.com
on 26 Dec 2012 at 2:38
decode is not raising an error, the segfault occurs in nc_get_vara when a value
of the vlen string is requested that has not yet been written. I don't think
fill values are supported by the library for vlen types. That means you can't
read a value that has not yet been written. This should not cause a segfault -
so I consider this a bug in the library.
Original comment by josh.n.w...@gmail.com
on 26 Dec 2012 at 4:01
Original comment by whitaker.jeffrey@gmail.com
on 7 Mar 2013 at 11:39
Original issue reported on code.google.com by
shuwen...@gmail.com
on 25 Dec 2012 at 8:03Attachments: