Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the most recent compressed SLC as output for LAST_PER_MINISTACK #513

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions src/dolphin/stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,26 +465,34 @@ def plan(

if compressed_idx is not None:
compressed_reference_idx = compressed_idx
output_reference_idx = self.output_reference_idx
elif self.compressed_slc_plan == CompressedSlcPlan.ALWAYS_FIRST:
# Simplest operational version: CompSLCs have same base phase,
# but different "residual" added on
# We use the `output_reference_idx`, 0 by default, but this index
# may be passed in if we are manually specifying an output
compressed_reference_idx = self.output_reference_idx
output_reference_idx = self.output_reference_idx
elif self.compressed_slc_plan == CompressedSlcPlan.FIRST_PER_MINISTACK:
# Like Ansari, 2017 paper: each ministack is "self contained"
compressed_reference_idx = num_ccslc
# Ansari, 2017 also had output_reference_idx = num_ccslcs, and
# use the "Datum Adjustment" step to get outputs relative to day 0
# used the "Datum Adjustment" step to get outputs relative to day 0
# Here, we'll use 0 (or manually specifed)
output_reference_idx = self.output_reference_idx
elif self.compressed_slc_plan == CompressedSlcPlan.LAST_PER_MINISTACK:
# Alternative that allows sequential interferograms across ministacks
compressed_reference_idx = -1
# For this, we'll always use the most recent compressed SLC as output
# reference so that we can connected stacks, but minimize the temporal
# baseline of interferograms we form
output_reference_idx = num_ccslc - 1

cur_ministack = MiniStackInfo(
file_list=combined_files,
dates=combined_dates,
is_compressed=combined_is_compressed,
output_reference_idx=self.output_reference_idx,
output_reference_idx=output_reference_idx,
compressed_reference_idx=compressed_reference_idx,
output_folder=cur_output_folder,
)
Expand Down
Loading