home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 307783090

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
307783090 MDU6SXNzdWUzMDc3ODMwOTA= 2007 rolling: allow control over padding 10194086 open 0     20 2018-03-22T19:27:07Z 2021-07-14T19:10:47Z   MEMBER      

Code Sample, a copy-pastable example if possible

```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.rolling(center=True, dayofyear=31).mean() ```

Problem description

rolling cannot directly handle periodic boundary conditions (lon, dayofyear, ...), but could be very helpful to e.g. calculate climate indices. Also I cannot really think of an easy way to append the first elements to the end of the dataset and then calculate rolling.

Is there a way to do this? Should xarray support this feature?

This might also belong to SO...

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/2007/reactions",
    "total_count": 3,
    "+1": 3,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    13221727 issue

Links from other tables

  • 2 rows from issues_id in issues_labels
  • 20 rows from issue in issue_comments
Powered by Datasette · Queries took 0.607ms · About: xarray-datasette