stac-utils / stactools

Command line utility and Python library for STAC
https://stactools.readthedocs.io/
Other
105 stars 28 forks source link

Decrease raster footprint memory use #428

Closed pjhartzell closed 1 year ago

pjhartzell commented 1 year ago

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: