Skip to content

Commit

Permalink
Allow pseudo-cor interpolation if no threshold given
Browse files Browse the repository at this point in the history
  • Loading branch information
scottstanie committed Oct 25, 2024
1 parent 3f88b6a commit cf9279d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/dolphin/unwrap/_unwrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions src/dolphin/workflows/config/_unwrap_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit cf9279d

Please sign in to comment.