diff --git a/src/dolphin/workflows/config/_displacement.py b/src/dolphin/workflows/config/_displacement.py index 067e1fe3..d776b8f6 100644 --- a/src/dolphin/workflows/config/_displacement.py +++ b/src/dolphin/workflows/config/_displacement.py @@ -27,7 +27,7 @@ WorkflowBase, _read_file_list_or_glob, ) -from ._unwrap_options import UnwrapOptions +from ._unwrap_options import UnwrapMethod, UnwrapOptions __all__ = [ "DisplacementWorkflow", @@ -246,3 +246,10 @@ def model_post_init(self, __context: Any) -> None: self.timeseries_options._velocity_file = ( work_dir / self.timeseries_options._velocity_file ) + + # Modify interferogram options if using spurt for 3d unwrapping, + # which only does nearest-3 interferograms + if self.unwrap_options.unwrap_method == UnwrapMethod.SPURT: + logger.info("Using spurt: forming nearest-3 interferograms.") + self.interferogram_network.reference_idx = None + self.interferogram_network.max_bandwidth = 3