opera-adt / DSWX-SAR

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

Debug metadata fields #55

Closed oberonia78 closed 6 months ago

oberonia78 commented 6 months ago

This PR fixes the bug in the save_mgrs_tile.py

The issue occurred when the two sets of dual polarizations (i.e. VV+VH and HH+HV) were given as input. Then, gather_rtc_files failed because the only first element of the pol_list was used to search the geotiff file. In this PR, the CO_POL is used instead of the first element of the pol_list to find the Geotiff file.

Also, another minor bug was found in the overlapped burst. Previously, the corner coordinates were used to search the overlapped bursts`, but this is not accurate. The new implementation uses the polygon of the bursts which is extracted from the metadata of the RTC image.