Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decrease raster footprint memory use #428

Merged
merged 1 commit into from
May 25, 2023

Conversation

pjhartzell
Copy link
Collaborator

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:

  • Code is formatted (run scripts/format).
  • Code lints properly (run scripts/lint).
  • Tests pass (run scripts/test).
  • Documentation has been updated to reflect changes, if applicable.
  • Changes are added to the CHANGELOG.

@pjhartzell pjhartzell requested a review from gadomski as a code owner May 25, 2023 21:22
@pjhartzell pjhartzell merged commit fcf2800 into main May 25, 2023
@pjhartzell pjhartzell deleted the issues/427-raster-footprint-memory branch May 25, 2023 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make raster footprint use less memory
2 participants