-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Losing attributes when exporting data with: write_dataset_to_netcdf #1585
Comments
@SpacemanPaul @Kirill888 This seems like a bug - writing out datacube data should preserve those important datacube attributes. However, it also makes me think we need to think about relocating the |
Copying chat from Slack here @SpacemanPaul @Kirill888: |
Real issue here is that code that populates and uses Extraction code is here: datacube-core/datacube/utils/masking.py Lines 226 to 240 in 9d3c6c1
so it's just a matter of adding And on the create side, code here will need to encode datacube-core/datacube/model/__init__.py Lines 347 to 349 in 9d3c6c1
|
but honestly, |
I think we're starting to get into Enhancement Proposal territory there. |
When exporting and re-loading data using datacube's
write_dataset_to_netcdf
function I discovered that some attributes are lost. In particular it appears to be dictionaries. I discovered this problem when exporting some landsat water observation data, where theflag_definitions
dictionary doesn't export. The export function should ideally keep the dataset intact for future use.The text was updated successfully, but these errors were encountered: