-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add logic for manually specifying reference dates mid-stack (#334)
* use the `reference_idx` from each `ministack`, dont hardcode to 0 * remove commented `stack.py` code * Add a `reference_idx` arg to `compress` * update `MiniStackPlanner` to accept manual reference indexes * start passing through logic to account for manual reference changeovers * fix num parallel to respect the file length * get the linked phase part working with manual references * move the reference date to be an output option * get basic single-reference changeover working for interferograms * specify naive datetime * add a test for ref update workflow * Setup test to check names of output ifgs * fix pre-commit/test err * Add an `output_reference_idx` to `PhaseLinkingOptions` This accounts for the fact that we may pass in several compressed SLCs for a single run, and we wish to make the phase linking outputs referenced to something besides the first SLC. For example, if we had 1_1_3 1_4_6 7_7_9 10 11 12 And we wanted to output interferograms relative to `7`, we need to specify that to the phase linking functions; otherwise, it will output things relative to day 1. Since we dont write out rasters corresponding to compressed SLC inputs, we'd have nothing from day 7 to re-refrence later. Note that an alternative might be to always write out rasters for every input in a ministack, including the compressed inputs. The downside is that during a normal local Sequential run with multiple ministacks, you write out redundant rasters and need to remove/select the right ones afterward. But if that way seems cleaner later, we could revert this commit. * Make 2 ministack idxs- one for `compressed_reference`, one for `output_reference` * separate ref/compressed idx in `.plan()`, use new api for `run_wrapped_phase_sequential` * fix tests, make `single` also use `vrt_stack` instead of filename * fix tests for `stack.py` * let only 1 compressed reference idx be passed to `.plan` * clean up commented, pass the `output_reference_index` to `run_phase_linking` in `single`
- Loading branch information
1 parent
733f414
commit 78e6375
Showing
12 changed files
with
308 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.