Why there is not implemented in xr.mean()
a parameter for minimum count of valid data accross arrays? As in xr.sum()
for example. I have a certain situation where I want to compute climatologies and I've got some issues with abnormal data to say. For example, for the first day of August my rasters from where I create the xr.dataset()
have values just for the 1-08-2015(created from MODIS NDSI) across the 20 years of data. It will be more facile if for example I had a min_count
to get rid of this observation.
Xarray Climatology Mean – Xarray Mean for Climatologies Using min_count as in xarray sum
pythonxarray
Best Answer
It's actually pretty facile to add this by yourself! :)
The amount of valid values per pixel
The mean values for pixels with more valid values than
min_count