issues: 1071806607
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1071806607 | PR_kwDOAMm_X84va6lN | 6049 | Attempt datetime coding using cftime when pandas fails | 132147 | closed | 0 | 2 | 2021-12-06T07:12:35Z | 2022-01-04T00:28:15Z | 2021-12-24T11:48:22Z | CONTRIBUTOR | 0 | pydata/xarray/pulls/6049 | A netCDF4 dataset we use has a time variable defined as:
Note the xarray can successfully open this dataset and parse the time units, making a time variable with the expeced values. However, attempting to save this dataset (e.g. after slicing some geographic bounds or selecting a subset of variables), xarray would raise an error trying to reformat the time This fix applies the same logic used in the decoding step to the encoding step - specifically, attempt to use
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/6049/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
13221727 | pull |