issues: 467267153
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
467267153 | MDU6SXNzdWU0NjcyNjcxNTM= | 3099 | Interpolation doesn't apply on time coordinate | 4711805 | closed | 0 | 1 | 2019-07-12T07:37:18Z | 2019-07-13T15:05:39Z | 2019-07-13T15:05:39Z | CONTRIBUTOR | MCVE Code Sample```python In [1]: import numpy as np ...: import pandas as pd ...: import xarray as xr In [2]: da = xr.DataArray([1, 2], [('time', pd.date_range('2000-01-01', '2000-01-02', periods=2))])
...: da In [3]: da.interp(time=da.time-np.timedelta64(1, 'D')) Problem DescriptionThe data has been interpolated, but not the time coordinate. Expected OutputWhen we explicitly get the values of the time coordinate, it works fine:
Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/3099/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |