stac-extensions / eo

Covers electro-optical data that represents a snapshot of the Earth. It could consist of cloud cover and multiple spectral bands, for example visible bands, infrared bands, red edge bands and panchromatic bands.
Apache License 2.0
9 stars 10 forks source link

Radiance to reflectance and other factors #11

Closed drnextgis closed 2 years ago

drnextgis commented 2 years ago

There are some factors per band that we would like to expose through STAC and it seems this extension is a good candidate for that:

I'd like to hear your input. Thanks!

emmanuelmathot commented 2 years ago

Optical calibration and more specifically conversion from DN to TOA reflectance need the following parameters that are already included in this extension and some others:

For the conversion from DN (for Digital Numbers) to spectral radiance (or ‘TOA radiance’) L, the following formula can be used:

L(b) = DN(b)*scale(b)+offset(b) (in W/m2/steradians/micrometers) with b being a band ID.

In order to convert TOA radiance to TOA reflectance, the following formula can be used:

R(b) = (pi*L(b)*d*d) / (ESUN(b)*cos(θ)) 

where:

see https://www.orfeo-toolbox.org/CookBook/Applications/app_OpticalCalibration.html

drnextgis commented 2 years ago

Thank you @emmanuelmathot for your detailed answer! I believe it will be useful for others with similar question.

cholmes commented 2 years ago

+1 - could be good to include that info directly in the scale and offset section of raster band. It looks like the first is there, but I don't see TOA radiance to TOA reflectance.