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

infinity, NaN in band statistics #40

Closed
bossie opened this issue Jul 7, 2023 · 2 comments
Closed

infinity, NaN in band statistics #40

bossie opened this issue Jul 7, 2023 · 2 comments
Assignees

Comments

@bossie
Copy link

bossie commented Jul 7, 2023

So we've run into this case where GDAL reports e.g. a maximum of Infinity and a mean of NaN for a raster.

Should the specification for the Statistics Object not be updated to allow these special values like nodata does?

@m-mohr
Copy link
Contributor

m-mohr commented Sep 28, 2023

STAC sprint:

For statistics, I think we should clarify that basically -infinity is the default for minimum and +infinity is the default for maximum.
nan for statistics doesn't make a lot of sense to me. Why not just omit the property then?
Having strings in the statistics seems like a bad idea to us.
Let's also add count field.

@m-mohr
Copy link
Contributor

m-mohr commented Sep 28, 2023

Is now present as part of the Bands RFC.

@m-mohr m-mohr closed this as completed Sep 28, 2023
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

No branches or pull requests

3 participants