home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 609850841

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/3941#issuecomment-609850841 https://api.github.com/repos/pydata/xarray/issues/3941 609850841 MDEyOklzc3VlQ29tbWVudDYwOTg1MDg0MQ== 30388627 2020-04-06T15:04:23Z 2020-04-06T15:04:23Z NONE

@dcherian Excellent solution!

If we upgrade this to 3d array and sum by z axis, it seems that method isn't suitable:

``` import xarray as xr import numpy as np

x = 2 y = 2 z = 3 data = np.arange(xyz).reshape(z, y, x)

input array

a = xr.DataArray(data, dims=['z', 'y', 'x'])

start_index array

sindex = xr.DataArray(np.full_like(a[0, ...], 0), dims=['y', 'x'])

end_index array

eindex = xr.DataArray(np.full_like(a[0, ...], 1), dims=['y', 'x']) ```

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