I have checked this PR against the bug I was encountering with refest=1 (ifg median value) using the small_test data when cohmask=1 and cohthresh =0.5. The original problem I was encountering (which was related to too many pixels being masked and impacting the ref_phs subtraction) no longer occurs.
I would like @tfuhrmann to test this PR against the issues he reported
I have checked this PR against the bug I was encountering with refest=1 (ifg median value) using the small_test data when cohmask=1 and cohthresh =0.5. The original problem I was encountering (which was related to too many pixels being masked and impacting the ref_phs subtraction) no longer occurs.
I would like @tfuhrmann to test this PR against the issues he reported