Support getBandInformation in PILFileTileSource
See original GitHub issueIt would be great if PILFileTileSource
could implement the same getBandInformation
as GDALFileTileSource
. For example, I want to extract general band info from a JPEG image. rasterio
lets me do this (though it throws warnings), but large_image
does not. Well really, I just want to know the “interpretation” of each band (not any stats) and that’s all that rasterio will return.
Could PILFileTileSource
implement getBandInformation
in a way that simply returns the interpretations? e.g. “red”, “blue”, “green”, “grey”, etc.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
See https://github.com/girder/large_image/pull/622
Indeed. You’d have to know that
mode
maps to the bands in the PIL.getInternalMetadata
is the catch-all for known metadata. As another function that is the wrong choice, thehistogram
function returns a histogram per band (so the length of its output would tell you the number of bands).I’ll get to this soon.