home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 922843005

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
922843005 MDExOlB1bGxSZXF1ZXN0NjcxNjY5NjU0 5476 Add coarsen.construct 2448579 closed 0     4 2021-06-16T16:42:15Z 2021-07-23T20:26:38Z 2021-06-24T16:55:25Z MEMBER   0 pydata/xarray/pulls/5476
  • [x] Closes #5454
  • [x] Tests added
  • [x] Passes pre-commit run --all-files
  • [x] User visible changes (including notable bug fixes) are documented in whats-new.rst
  • [x] New functions/methods are listed in api.rst

Builds on #5474

Here's an example ``` python import numpy as np import xarray as xr

ds = xr.Dataset( { "vart": ("time", np.arange(48)), "varx": ("x", np.arange(10)), "vartx": (("x", "time"), np.arange(480).reshape(10, 48)), "vary": ("y", np.arange(12)), }, coords={"time": np.arange(48), "y": np.arange(12)}, ) ds.coarsen(time=12, x=5, boundary="trim").construct( {"time": ("year", "month"), "x": ("x", "x_reshaped")} ) ```

What do people think of this syntax: {"time": ("year", "month"), "x": ("x", "x_reshaped")? Should we instead do {"time": "month", "x": "x_reshaped"} and have the user later rename the x or time dimension if they want?

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

Links from other tables

  • 1 row from issues_id in issues_labels
  • 4 rows from issue in issue_comments
Powered by Datasette · Queries took 0.705ms · About: xarray-datasette