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/634#issuecomment-149665634,https://api.github.com/repos/pydata/xarray/issues/634,149665634,MDEyOklzc3VlQ29tbWVudDE0OTY2NTYzNA==,1217238,2015-10-20T18:50:57Z,2015-10-20T18:50:57Z,MEMBER,"Yeah, I think I need to tackle this one -- it will be a little messy. I have a work in progress branch I can finish up. On Tue, Oct 20, 2015 at 11:49 AM, Spencer Hill notifications@github.com wrote: > Cool, thanks. Not familiar enough w/ the xray source code at this time to contribute directly to the refactor, but for the time being here's a simple 2-liner workaround: > > ``` python > dlon = arr['lon'].diff('lon') > dlon.values = np.diff(arr['lon']) > ``` > > --- > > Reply to this email directly or view it on GitHub: > https://github.com/xray/xray/issues/634#issuecomment-149664980 ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,112430028 https://github.com/pydata/xarray/issues/634#issuecomment-149664980,https://api.github.com/repos/pydata/xarray/issues/634,149664980,MDEyOklzc3VlQ29tbWVudDE0OTY2NDk4MA==,6200806,2015-10-20T18:49:08Z,2015-10-20T18:49:08Z,CONTRIBUTOR,"Cool, thanks. Not familiar enough w/ the xray source code at this time to contribute directly to the refactor, but for the time being here's a simple 2-liner workaround: ``` python dlon = arr['lon'].diff('lon') dlon.values = np.diff(arr['lon']) ``` ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,112430028 https://github.com/pydata/xarray/issues/634#issuecomment-149658680,https://api.github.com/repos/pydata/xarray/issues/634,149658680,MDEyOklzc3VlQ29tbWVudDE0OTY1ODY4MA==,1217238,2015-10-20T18:34:22Z,2015-10-20T18:34:22Z,MEMBER,"Thanks for the report -- this is definitely a bug. I think the solution here is similar to the refactoring we need to support accessors like `ds['time.time']`: https://github.com/xray/xray/issues/367 ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,112430028