From cf9279dfbfe3cb6c722c63ccefab665d0ce1333c Mon Sep 17 00:00:00 2001 From: Scott Staniewicz Date: Fri, 25 Oct 2024 14:23:44 -0400 Subject: [PATCH] Allow pseudo-cor interpolation if no threshold given --- src/dolphin/unwrap/_unwrap.py | 2 +- src/dolphin/workflows/config/_unwrap_options.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dolphin/unwrap/_unwrap.py b/src/dolphin/unwrap/_unwrap.py index 714d57d3..c230262b 100644 --- a/src/dolphin/unwrap/_unwrap.py +++ b/src/dolphin/unwrap/_unwrap.py @@ -369,7 +369,7 @@ def unwrap( pre_interp_ifg = io.load_gdal(pre_interp_ifg_filename) corr = io.load_gdal(corr_filename) - if similarity_filename: + if similarity_filename and preproc_options.interpolation_similarity_threshold: cutoff = preproc_options.interpolation_similarity_threshold logger.info(f"Masking pixels with similarity below {cutoff}") sim = io.load_gdal(similarity_filename, masked=True).filled(0) diff --git a/src/dolphin/workflows/config/_unwrap_options.py b/src/dolphin/workflows/config/_unwrap_options.py index 3501085d..80790eb1 100644 --- a/src/dolphin/workflows/config/_unwrap_options.py +++ b/src/dolphin/workflows/config/_unwrap_options.py @@ -151,14 +151,14 @@ class SpurtGeneralSettings(BaseModel): class SpurtTilerSettings(BaseModel): """Class for holding tile generation settings.""" - max_tiles: int = Field(49, description="Maximum number of tiles allowed.", ge=1) + max_tiles: int = Field(64, description="Maximum number of tiles allowed.", ge=1) target_points_for_generation: int = Field( 120_000, description="Number of points used for determining tiles based on density.", gt=0, ) target_points_per_tile: int = Field( - 1_000_000, description="Target points per tile when generating tiles.", gt=0 + 9_000_000, description="Target points per tile when generating tiles.", gt=0 ) dilation_factor: float = Field( 0.05,