Skip to content

feat: Expose band statistics - #108

Merged
kylebarron merged 7 commits into
mainfrom
kyle/parse-gdal-metadata
Feb 27, 2026
Merged

kylebarron merged 7 commits into
mainfrom
kyle/parse-gdal-metadata

Conversation

@kylebarron

@kylebarron kylebarron commented Feb 27, 2026 •

Copy link
Copy Markdown
Member

Change list

  • Create BandStatistics dataclass that defines min max mean std and valid_percent
  • Parse GDAL_Metadata tiff tag
  • For now, we don't expose gdal_metadata as a "blob"; we only expose the structured statistics so that the underlying gdal metadata data model is not part of the public API
  • Band statistics exposed as an immutable mapping to further minimize the scope of our public API. ref https://adamj.eu/tech/2022/01/05/how-to-make-immutable-dict-in-python/

@kylebarron kylebarron changed the title WIP: parse GDAL metadata feat: parse GDAL metadata Feb 27, 2026
@github-actions github-actions Bot added the feat label Feb 27, 2026
@kylebarron kylebarron changed the title feat: parse GDAL metadata feat: Expose band statistics Feb 27, 2026
@kylebarron
kylebarron merged commit d380d0c into main Feb 27, 2026
9 checks passed
@kylebarron
kylebarron deleted the kyle/parse-gdal-metadata branch February 27, 2026 17:14
kylebarron added a commit to developmentseed/deck.gl-raster that referenced this pull request Mar 5, 2026
…ffsets/scales (#316)

Closes #301

### Change list

- Direct port of
developmentseed/async-geotiff#108 and
developmentseed/async-geotiff#110
- New attributes `storedStats`, `offsets` and `scales`
- Added tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant