Allow separate filtering of background|nodata and (non-)valid data
Currently, one is able to filter by
-
aoi_min_coverage
-- User defined threshold for noData values inside the AOI (currently it is actually bbox not AOI). [...] Here the user can define a percentage value of minimum valid pixels inside the AOI. -
SCL_mask_valid_pixels_min_percentage
-- If cloud masking based on the SCL band is applied, it may happen that images are saved which contain only very few valid pixels. Here the user can define a percentage value of minimum valid pixels that should be left over after masking in order to save the image.- Btw: As I see it, the description is not really correct. I thought the threshold given here is applied independent from the SCL masking applied. It is rather a selection if the data is selected. And the
apply_SCL_band_mask
just adds on top of it, if the non-valid pixels are masked out or not (and given as they are provided).
- Btw: As I see it, the description is not really correct. I thought the threshold given here is applied independent from the SCL masking applied. It is rather a selection if the data is selected. And the
Currently, the second parameter includes also the first parameter. Valid pixels are defined as nodata pixels (background) + not filtered SCL pixels. See here
But, from my opinion it should be the following:
- one parameter defining the percentage of data insight your AOI. Which is the current
aoi_min_coverage
- second parameter defining the percentage of valid pixels (non filtered pixels based on SCL-band) of all available data (excluding the background).
Thus, it would be possible to do queries such as. Give me all cloud free data within my AOI, if they at least cover the AOI 20%. This is not possible by now. Below is an example of expected behaviour: