Open robmarkcole opened 10 months ago
Today the clear pixels (% and number) computation is only done when you choose to mask with a cloudmask your dataset and you ask for it (_maskstatistics=True when you create the datacube). There is a specific part in earthdaily py that manages that according to the cloudmask you select (and it is generic so you can add easily new mask providers) : https://github.com/GEOSYS/earthdaily-python-client/blob/main/earthdaily/earthdatastore/mask/__init__.py and nan pixels (gerally mainly those outside the bbox/geometry) are not counted in it. It is the clear percent and number of clear pixels inside your geometry. The nan size per date is so the total available pixels in the geometry minus the x*y size (except if you have nan pixels values inside your geometry).
In addition to calculating cloud pixels I find it essential to calc the nan pixels, I am using the function below which can be adapted: