diff --git a/metsim/metsim.py b/metsim/metsim.py index 43a4290..452df7e 100644 --- a/metsim/metsim.py +++ b/metsim/metsim.py @@ -334,7 +334,7 @@ def setup_netcdf_output(self, filename, times): for dim in self.domain['mask'].dims: dim_vals = self.domain[dim].values dim_dtype = dtype_map.get( - dim_vals.dtype, self.params['out_precision']) + str(dim_vals.dtype), self.params['out_precision']) dim_var = ncout.createVariable(dim, dim_dtype, (dim, )) dim_var[:] = dim_vals