ASFHyP3 / hyp3-isce2

HyP3 plugin for ISCE2 processing
Apache License 2.0
13 stars 9 forks source link

Scenes over water fail with `Failed to compute statistics, no valid pixels found in sampling` when `apply_water_mask=True` #211

Open asjohnston-asf opened 4 months ago

asjohnston-asf commented 4 months ago

INSAR_ISCE_BURST jobs fail with errors such as RuntimeError: S1_320206_IW1_20200901_20200913_VV_INT80_77F1/S1_320206_IW1_20200901_20200913_VV_INT80_77F1_unw_phase.tif, band 1: Failed to compute statistics, no valid pixels found in sampling. during the geocoding step when a user processes a pair of scenes entirely over water and applies water masking.

For example, this pair is off the Florida coast:

S1_320206_IW1_20200901T232050_VV_8BB7-BURST
S1_320206_IW1_20200913T232051_VV_DD3A-BURST

An INSAR_ISCE_BURST jobs succeeds when apply_water_mask=False: https://hyp3-api.asf.alaska.edu/jobs/17ce7f24-ba52-4c44-abde-6a339fab7a87 But fails when apply_water_mask=True: https://hyp3-api.asf.alaska.edu/jobs/f3c721ee-827e-434b-a71a-50d1fe6d6c8d

Screenshot from 2024-06-17 14-59-23

Complete log file for reference: f3c721ee-827e-434b-a71a-50d1fe6d6c8d.log

lidar-nevermore commented 2 months ago

I think this is the same bug as https://github.com/ASFHyP3/hyp3-isce2/issues/247 The lonlat coordinates are wrong, so that pixels in the water mask cannot be correctly transformed from wgs84 to radar coordinates.