From aebe38c13cff77561a94769975c3f26e79580323 Mon Sep 17 00:00:00 2001 From: Scott Staniewicz Date: Thu, 10 Oct 2024 17:45:05 -0400 Subject: [PATCH] for spurt, override the `interferogram_network` configuration --- src/dolphin/workflows/config/_displacement.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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