issue_comments: 521758170
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/2808#issuecomment-521758170 | https://api.github.com/repos/pydata/xarray/issues/2808 | 521758170 | MDEyOklzc3VlQ29tbWVudDUyMTc1ODE3MA== | 22258697 | 2019-08-15T19:02:51Z | 2021-07-21T16:47:47Z | NONE | Ryan Abernathey gave a helpful answer for how to apply a pixel wise function using dask and apply_ufunc: https://stackoverflow.com/questions/57419541/how-to-use-apply-ufunc-with-numpy-digitize-for-each-image-along-time-dimension-o/57513184#57513184 I think the docs could improve on showing how to use apply_ufunc if we have a function that needs to be applied image-wise, like an image filter or segmentation, if we are chunking by time. Or, if the function needs to be applied window-wise, in which case the chunks are spatial (maybe DataArray.rolling and DataArray.reduce solve this case, but DataArray.reduce lacks an example). Having examples that speak to these 2 specific use cases would, I think, help newcomers (like myself) that are coming from any domain that works with 2D ('x', 'y') or 3D ('x', 'y', 'time') arrays. Currently the two examples in the docs show how to apply_ufunc with a 1D array http://xarray.pydata.org/en/stable/computation.html#comput-wrapping-custom And two 2D arrays ('place', 'time') http://xarray.pydata.org/en/stable/dask.html#automatic-parallelization Some other comments on my, and possibly others', points of confusion.
|
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
420584430 |