home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 499548285

This data as json

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/2007#issuecomment-499548285 https://api.github.com/repos/pydata/xarray/issues/2007 499548285 MDEyOklzc3VlQ29tbWVudDQ5OTU0ODI4NQ== 10194086 2019-06-06T15:36:58Z 2019-06-06T15:36:58Z MEMBER

I am coming back to @shoyer suggestion in #2011 - your idea would be to do first a pad and then a rolling operation as e.g.:

``` python

import numpy as np import xarray as xr

x = np.arange(1, 366) y = np.random.randn(365) ds = xr.DataArray(y, dims=dict(dayofyear=x))

ds.pad(dayofyear=15, mode='wrap').rolling(center=True, dayofyear=31).mean()

```

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  307783090
Powered by Datasette · Queries took 0.919ms · About: xarray-datasette