home / github / commits

Menu
  • GraphQL API
  • Search all tables

commits: 69ac5117f536836a0fa75ad17779f818b4f8ee28

This data as json

sha message author_date committer_date raw_author raw_committer repo author committer
69ac5117f536836a0fa75ad17779f818b4f8ee28 Added convenience method for saving DataArray to netCDF file (#990) * Added convenience method for saving DataArray to netCDF file Added a simple function to DataArray that creates a dataset with one variable called 'data' and then saves it to a netCDF file. All parameters are passed through to to_netcdf(). Added an equivalent function called `open_dataarray` to be used to load from these files. * Updated open_dataarray and da.to_netcdf to respect names & load any single var dataset * Added tests for da.to_netcdf() and xr.open_dataarray() * Implemented perfect round-tripping for to_netcdf and open_dataarray Changed name that is used if da has no name Stored old name in attrs so it can be replaced Updated tests Updated docs * Updated Sphinx docs * Added appropriate requires decorator for tests * Added close() for DataArray, and moved closing code to BaseDataObject When loading a DataArray, the _file_obj attribute is set to the same object as the source Dataset's _file_obj. This can then be used to close the file from the DataArray. Tests have been updated to use this * Switched to full func signature, used context mgr in tests * Updated whats new to reference issue & attribute changes * Moved repeated strings to constants & tidied up docstrings 2016-09-06T04:00:06Z 2016-09-06T04:00:06Z e0cdd27bbaaedea5bf75e4337774ce4a26199889 f10b21bed2846b879806f87039b77245b18e7671 13221727 296686 1217238
Powered by Datasette · Queries took 0.933ms · About: xarray-datasette