opera-adt / DSWX-SAR

Dynamic Surface Water Extent from Synthetic Aperture Radar
Apache License 2.0
9 stars 6 forks source link

Handle cases that the bursts with dual-polarizations coexist with those with single-polarizations #67

Closed oberonia78 closed 4 months ago

oberonia78 commented 4 months ago

This PR addresses the potential issues that the MGRS tile collection has the bursts with the dual-polarizations and the bursts with the single-polarizations, together. In such a case, the current codes have no problem in mosaic_rtc_burst.py, pre_processing.py, and initial_threshold.py. However, the fuzzy_logic_ computation.py considers the empty areas as zero-value and computes the fuzzy_values. In this PR, new code uses nanmean instead of computing mean values from nansum and number of layer.