stac-extensions / raster

Describes raster assets at band level (one or multiple) with specific information such as data type, unit, number of bits used, nodata.
Apache License 2.0
13 stars 7 forks source link

infinity, NaN in band statistics #40

Closed bossie closed 1 year ago

bossie commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

Is now present as part of the Bands RFC.