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/1332#issuecomment-418154705,https://api.github.com/repos/pydata/xarray/issues/1332,418154705,MDEyOklzc3VlQ29tbWVudDQxODE1NDcwNQ==,13205162,2018-09-03T16:14:46Z,2018-09-03T16:14:46Z,CONTRIBUTOR,"I'm not sure where we stand on this issue, but I think since `numpy.gradient` already exists, it makes more sense to wrap that function for the sake of simplicity instead of making `xr.diff` differ from the original premise of `np.diff`. On the same topic, it bothers me that `xr.diff` only accepts `""upper""` and `""lower""` arguments for the label. The most obvious (and useful) value in my opinion would be `""middle""`, which would correspond to a centered finite differences. Is there any special reason why that option isn't there?","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,217385961