Commit 0dc8c534 authored by Jeff Piollé's avatar Jeff Piollé

fix for string type in NetCDF variables

parent a888e0e5
......@@ -844,6 +844,9 @@ class NCFile(AbstractMapper):
self._create_complex(comp.variable.shortname,
numpy.dtype(numpy.float32),
dims, comp, field)
elif comp.datatype == numpy.str_:
self._create_field(varname, 'S1', dims,
fillvalue, comp, field)
else:
self._create_field(varname, datatype, dims,
fillvalue, comp, field)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment