issues: 1516234283
This data as json
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1516234283 | I_kwDOAMm_X85aX-Yr | 7406 | Grid mapping not saved in attributes when extra encoding is specified | 64479100 | open | 0 | 1 | 2023-01-02T10:17:07Z | 2023-01-15T15:46:55Z | NONE | What is your issue?When I will use the following NetCDF file to illustrate the issue:
With the code
But when I save with extra encoding information fot the data variable I suspect this is because of the possibility that the previous encoding might become invalid when the dataset is changed or encoded differently? But this makes it quite hard not to lose the grid mapping info, which should normally not be affected by data type, fill value or similar. I use python 3.10.5 and xarray 2022.3.0. |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/7406/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
13221727 | issue |