Description
As described in the dev version of our documentation on encoding, we now support a keyword argument for controlling how netCDF files are written to disk with to_netcdf
:
http://xray.readthedocs.org/en/latest/io.html#reading-encoded-data
We still retain the feature that there is an "encoding" dictionary that sticks around with xray Variable
objects, which stores how they were compressed/encoded on disk. This can be occasionally handy. It means, for example, that we always write out netCDF files with the same time units as the files we read from disk.
It might make sense to eliminate this feature for the sake of significantly simplifying xray's internal data model. For cases where it really matters, users can now use the encoding
keyword argument to to_netcdf
instead. This would leave three attributes on the Variable
object: dims
, _data
and attrs
.
Thoughts?