home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 341272087

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
341272087 MDU6SXNzdWUzNDEyNzIwODc= 2286 Assembling a domain from smaller 2D patches using DataArray 13205162 closed 0     1 2018-07-14T21:48:41Z 2018-07-14T22:44:54Z 2018-07-14T22:44:54Z CONTRIBUTOR      

This is based off of this question I posted in SO. Basically I have a huge 2D domain that is separated into a lot of smaller 2D domains (as DataArrays). I have been trying to find a way to combine them all into one huge DataArray based on their coordinates. Kind of like assembling a mosaic. Here's a MWE of one of my tries that didn't work:

```python a=xr.DataArray(np.random.rand(4,4)+0, dims=("x", "y"), coords=dict(x=range(4), y=range(4))) b=xr.DataArray(np.random.rand(4,4)+1, dims=("x", "y"), coords=dict(x=range(4,8), y=range(4))) c=xr.DataArray(np.random.rand(4,4)+2, dims=("x", "y"), coords=dict(x=range(4,8), y=range(4,8)))

d=xr.concat([a,b,c], dim="x") d.plot.imshow(x="x") ```

This is somewhat close to what I wanted, but since it only concatenates in one direction, the output is wrong. You can read the question I linked above for a more detail explanation with a figure.

At this point I'm thinking that what I want is not possible with what's currently implemented in xarray. So if indeed this is the case, I think this could be understood as a feature request, since I think this functionality would be very useful.

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

Links from other tables

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