Skip to content

Read in blocks to reduce/limit memory requirements #11

@klassenjs

Description

@klassenjs

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()

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions