opera-adt / DSWX-SAR

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

DSWx-NI Add partial surface water class #84

Closed oberonia78 closed 2 months ago

oberonia78 commented 2 months ago

This PR addresses the technical way packaging the products. The NISAR GCOV products come with pixel spacing of either 10 or 20 m, while the DSWx-NI products are expected to have a 30 m pixel spacing. When converting the 20 m water to the 30 m water products, the coarser pixel might comprise several higher resolution pixels. For instance, the 30 m pixel might overlap with nine 10 m pixels. Rather than simply interpolating the value, we can count the water pixels and introduce an additional class called partial_water.

However, when dealing with the 20m pixels, it could be challenging to count the integer number of pixels because they are not exactly aligned. To resolve it, we oversample 20 m pixel to 10 m and count the number of pixels.

image