min number of pixels with overlapping granules
Minimum number of pixels is applied for each granule. This causes an issue in some cases when multiple granules contribute to the same grid cell, see example below.
I set my min_pixel_count=6
and I have two granules A
and B
that contribute to the same grid cell.
A
has 5 valid pixels; B
has 4 valid pixels.
The aggregated granule should have that cell populated with a Pixel_Count=9
but Yori discards each of the granules because they are below the threshold.
Solution:
need to move the evaluation of the pixel_counts
for the purpose of filtering out grid cells at the end of the aggregation stage.