Skip to content

Commit

Permalink
for spurt, override the interferogram_network configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
scottstanie committed Oct 10, 2024
1 parent c279069 commit aebe38c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/dolphin/workflows/config/_displacement.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
WorkflowBase,
_read_file_list_or_glob,
)
from ._unwrap_options import UnwrapOptions
from ._unwrap_options import UnwrapMethod, UnwrapOptions

__all__ = [
"DisplacementWorkflow",
Expand Down Expand Up @@ -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

0 comments on commit aebe38c

Please sign in to comment.