Bandmath AVG function with NaN values


Does anyone know how the avg() bandmath function works with NaN values?

If one value is NaN the average value will be NaN.
This is the implementation:

EOMasters_icon_60 Marco from EOMasters - Mastering Earth Observation

Thanks. Is there an mean implementation where the nan values are excluded from the calculation?

Unfortunately, there is none.

Now, there is one. It is implemented in the EOMasters Toolbox.

1 Like

Awesome! Thanks Marco.