html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue
https://github.com/pydata/xarray/issues/2191#issuecomment-426324533,https://api.github.com/repos/pydata/xarray/issues/2191,426324533,MDEyOklzc3VlQ29tbWVudDQyNjMyNDUzMw==,1217238,2018-10-02T15:45:08Z,2018-10-02T15:45:08Z,MEMBER,Take a look at https://github.com/pydata/xarray/pull/2458 for a very basic version of this.,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,327089588
https://github.com/pydata/xarray/issues/2191#issuecomment-399337976,https://api.github.com/repos/pydata/xarray/issues/2191,399337976,MDEyOklzc3VlQ29tbWVudDM5OTMzNzk3Ng==,1217238,2018-06-22T06:42:03Z,2018-06-22T06:42:03Z,MEMBER,"Yes, that would probably be a good idea.
On Thu, Jun 21, 2018 at 9:51 PM Aidan Heerdegen
wrote:
> Does this need it's own issue then, so it doesn't get lost?
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> , or mute
> the thread
>
> .
>
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,327089588
https://github.com/pydata/xarray/issues/2191#issuecomment-399316316,https://api.github.com/repos/pydata/xarray/issues/2191,399316316,MDEyOklzc3VlQ29tbWVudDM5OTMxNjMxNg==,1217238,2018-06-22T04:20:48Z,2018-06-22T04:20:48Z,MEMBER,"shift() is different from resampling, but indeed it looks like we’ll need
to add it manually to CFTimeIndex.
On Thu, Jun 21, 2018 at 9:12 PM Aidan Heerdegen
wrote:
> I'm not sure if my issue belongs in here, but I didn't want to create a
> new Issue (there are already 455 open ones).
>
> I am experimenting with the new CFTimeIndex functionality (thanks heaps
> BTW! That was a mammoth effort if the PR thread is anything to go by).
>
> I am trying to shift a time index as I need to align datasets to a common
> start point. So using the example code above,
>
> da.time.get_index('time').shift(1,'D')---------------------------------------------------------------------------NotImplementedError Traceback (most recent call last) in ()----> 1 da.time.get_index('time').shift(1,'D')
> /g/data3/hh5/public/apps/miniconda3/envs/analysis27-18.04/lib/python2.7/site-packages/pandas/core/indexes/base.pyc in shift(self, periods, freq)
> 2627 """""" 2628 raise NotImplementedError(""Not supported for type %s"" %-> 2629 type(self).__name__) 2630 2631 def argsort(self, *args, **kwargs):NotImplementedError: Not supported for type CFTimeIndex
>
> Is this not implemented because it might require resampling?
>
> I ask because this works:
>
> times[0] + pd.Timedelta('365 days')
> cftime.DatetimeNoLeap(2, 1, 1, 0, 0, 0, 0, -1, 1)```
>
> I guess I am asking, if I want to shift a time index is the best (only?) way currently to loop over all the individual elements of the index and add a time offset to each?
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> , or mute
> the thread
>
> .
>
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,327089588
https://github.com/pydata/xarray/issues/2191#issuecomment-392589537,https://api.github.com/repos/pydata/xarray/issues/2191,392589537,MDEyOklzc3VlQ29tbWVudDM5MjU4OTUzNw==,1217238,2018-05-28T19:16:24Z,2018-05-28T19:16:24Z,MEMBER,"Yes, I think so. The main thing we need is a function to map from datetime -> datetime at start of frequency.","{""total_count"": 2, ""+1"": 2, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,327089588