issues: 495382528
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
495382528 | MDU6SXNzdWU0OTUzODI1Mjg= | 3320 | Error saving xr.Dataset with timezone aware time index to netcdf format. | 923438 | open | 0 | 1 | 2019-09-18T18:20:42Z | 2022-01-17T21:23:02Z | NONE | When I try to save a xr.Dataset that was created from a pandas dataframe with tz-aware time index ( see #3291) - xarray converts the time index into a int64 nanosecs For example, this is what the converted dataset looks like:
Now when I try to save this dataset using
I get the following error:
Dropping into pdb when this error is hit - it looks like the problem is with the time index. After converting the time index into a regular int index by:
And this also works !!
Any ideas on what I can do about this ? Thanks! -firdaus |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/3320/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
13221727 | issue |