ASFHyP3 / hyp3-gamma

HyP3 plugin for generating SAR products with GAMMA
BSD 3-Clause "New" or "Revised" License
28 stars 7 forks source link

InSAR fails with `no offsets found above correlation coefficient threshold` for scenes over water #561

Open asjohnston-asf opened 2 weeks ago

asjohnston-asf commented 2 weeks ago

InSAR jobs entirely over water fail due to a no offsets found above correlation coefficient threshold error reported by gamma's offset_pwr program during co-registration of the two scenes.

https://github.com/ASFHyP3/hyp3-gamma/blob/develop/hyp3_gamma/insar/interf_pwr_s1_lt_tops_proc.py#L56

Traceback (most recent call last):
  File "/usr/local/bin/hyp3_gamma", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.10/dist-packages/hyp3_gamma/__main__.py", line 38, in main
    process_entry_point.load()()
  File "/usr/local/lib/python3.10/dist-packages/hyp3_gamma/__main__.py", line 185, in insar
    product_name = insar_sentinel_gamma(
  File "/usr/local/lib/python3.10/dist-packages/hyp3_gamma/insar/ifm_sentinel.py", line 399, in insar_sentinel_gamma
    interf_pwr_s1_lt_tops_proc(reference, secondary, hgt, rlooks=rlooks, alooks=alooks, step=1)
  File "/usr/local/lib/python3.10/dist-packages/hyp3_gamma/insar/interf_pwr_s1_lt_tops_proc.py", line 111, in interf_pwr_s1_lt_tops_proc
    coregister_data(
  File "/usr/local/lib/python3.10/dist-packages/hyp3_gamma/insar/interf_pwr_s1_lt_tops_proc.py", line 56, in coregister_data
    execute(f"offset_pwr {reference}.slc {secondary}.rslc {mpar} {srpar} {offi} offs snr {cmd_sfx}", uselogging=True)
  File "/usr/local/lib/python3.10/dist-packages/hyp3lib/execute.py", line 78, in execute
    raise ExecuteError(tool + ': ' + line)
hyp3lib.exceptions.ExecuteError: offset_pwr: ERROR: no offsets found above correlation coefficient threshold

Example job: https://hyp3-api.asf.alaska.edu/jobs/4104fa71-722e-4c76-ad9d-2da08e1e510a

S1A_IW_SLC__1SDV_20240511T225042_20240511T225109_053830_068ABA_FE9E
S1A_IW_SLC__1SDV_20240523T225042_20240523T225109_054005_0690C1_26B6

Screenshot from 2024-06-19 07-11-55