support snaphu connect component for gamma interferograms
#1378
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of proposed changes
This PR adds support for loading the SNAPHU-generated connected components for Gamma interferogram stacks, thereby allowing unwrapping error corrections for Gamma products, as requested by @AoqingGuo-Ucb in #1375. Detailed changes are:
cli.prep_gamma.py: add.conncompto the supported file extensionprep_gamma.py: add special treatment in thelksandDATA_TYPEextraction for the connected component fileutils.readfile.get_slice_list(): return only["phase"]if there is only one band, such as the case of gamma.unwfile.Reminders
Summary by Sourcery
Enable support for SNAPHU-connected component (
.conncomp) files in Gamma interferogram preprocessing, including CLI recognition, metadata handling, and phase-only data slicing.New Features:
.conncompfiles in the CLI and include them in the supported input extensions.conncompfiles by adjusting look parameter parsing and setting DATA_TYPE to BYTEEnhancements:
.unwfilesDocumentation:
.conncompand its corresponding.rscfile