-
Notifications
You must be signed in to change notification settings - Fork 303
User-defined connCompMinArea not used during unwrapping error correction with phase_closure method #1335
Description
Description of the problem
When using the phase_closure unwrapping error correction method, the default connCompMinArea value is not passed to the connected component labeling function. It always uses the default (2.5e3), which can lead to unexpected results or an error indicating that the reference point is not included in the connected components:
I have identified where the connCompMinArea is dropped and I am in the process of creating a PR to address the issue
Full script that generated the error
To duplicate the error, order an INSAR_ISCE_BURST SBAS stack from ASF HyP3. Use the phase_closure unwrapping error correction method and set connCompMinArea <= 500. Then run the smallBaselineApp, and include the correct_unwrap_error step. This is not an issue for the bridging method.
Full error message
I didn't copy the error message text, but it is in the screenshot above.
System information
- Operating system: Linux
- Python environment: conda+pip
- MintPy version: 1.6.1 (also confirmed issue in unreleased code on main branch, 2025-03-28)
- InSAR processor/product: isce2
- Your custom / default template file (if the bug is related to a specific dataset):
- mintpy.compute.cluster = local
mintpy.compute.numWorker = 4
mintpy.load.processor = hyp3
mintpy.load.unwFile = /home/jovyan/063_133407_IW1//_unw_phase*.tif
mintpy.load.corFile = /home/jovyan/063_133407_IW1//_corr*.tif
mintpy.load.connCompFile = /home/jovyan/063_133407_IW1//_conncomp*.tif
mintpy.load.demFile = /home/jovyan/063_133407_IW1//_dem*.tif
mintpy.load.incAngleFile = /home/jovyan/063_133407_IW1//_lv_theta*.tif
mintpy.load.azAngleFile = /home/jovyan/063_133407_IW1//_lv_phi*.tif
mintpy.load.waterMaskFile = /home/jovyan/063_133407_IW1//_water_mask*.tif
mintpy.unwrapError.method = phase_closure
mintpy.unwrapError.connCompMinArea = 500
mintpy.troposphericDelay.method = no
mintpy.reference.date = no
- mintpy.compute.cluster = local
