One-liner that removes np.where that enclosed a boolean array. For an ESA WorldCover tile (36,000x36,000 pixels in size), the memory required to populate the initial mask array (all 0s) with 1s at valid data locations is reduced from ~17 GB to ~ 1GB.
No API changes, so no CHANGELOG entry required.
PR checklist:
[x] Code is formatted (run scripts/format).
[x] Code lints properly (run scripts/lint).
[x] Tests pass (run scripts/test).
[ ] Documentation has been updated to reflect changes, if applicable.
Related Issue(s):
Description:
One-liner that removes
np.where
that enclosed a boolean array. For an ESA WorldCover tile (36,000x36,000 pixels in size), the memory required to populate the initial mask array (all 0s) with 1s at valid data locations is reduced from ~17 GB to ~ 1GB.No API changes, so no CHANGELOG entry required.
PR checklist:
scripts/format
).scripts/lint
).scripts/test
).