issues: 650549352
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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 650549352 | MDU6SXNzdWU2NTA1NDkzNTI= | 4197 | Provide a "shrink" command to remove bounding nan/ whitespace of DataArray | 13906519 | open | 0 | 7 | 2020-07-03T11:55:05Z | 2022-04-09T01:22:31Z | NONE | I'm currently trying to come up with an elegant solution to remove extra whitespace/ nan-values along the edges of a 2D DataArray. I'm working with geographic data and search for an automatic way to shrink the extend to valid data only. Think a map of the EU, but remove all cols/ rows of the array (starting from the edges) that only contain nan.
Describe the solution you'd like A shrink command that removes all nan rows/ cols at the edges of a DataArray. Describe alternatives you've considered I currently do this with NumPy operating on the raw data and creating a new DataArray afterwards |
{
"url": "https://api.github.com/repos/pydata/xarray/issues/4197/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
13221727 | issue |
