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

Read in blocks to reduce/limit memory requirements #11

Open
klassenjs opened this issue Aug 23, 2023 · 0 comments
Open

Read in blocks to reduce/limit memory requirements #11

klassenjs opened this issue Aug 23, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@klassenjs
Copy link
Contributor

Read in blocks (multiple of image's internal BlockXSize x BlockYSize, typically 256x256) instead of reading the whole image at once so the whole uncompressed image doesn't need to fit into memory. Balance large block sizes (for efficiency) with reasonable memory usage. Probably blocks of 1024x1024 to 8192x8192 would be reasonable.

data_array = band.ReadAsArray()

@klassenjs klassenjs added the enhancement New feature or request label Aug 23, 2023
@klassenjs klassenjs self-assigned this Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant