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.
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.