-
Notifications
You must be signed in to change notification settings - Fork 297
load multiple stack files + resize ionosphere on the fly #796
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
Merged
Conversation
This file contains hidden or 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
+ utils.isce_utils.extract_geometry_metadata(): - extract LENGTH & WIDTH, as reference for the A/RLOOKS - update attribute if box is not None - simplify its usage in prep_fringe.py + prep_isce.prepare_stack(): update the following metadata if the input obs file has different size than the stack.rsc file, to better reflect the truth, e.g. for low resolution iono file. - A/RLOOKS - AZIMUTH/RANGE_PIXEL_SIZE - NCORRLOOKS - note that LENGTH/WIDTH/Y/X_FIRST/STEP is already extracted from the obs file, thus, no need for checking or updating to reflect the truth.
+ replace the combination of -f/-d with the single -f option for a simpler and more robust logic to grab all data files in a given path pattern. + Together with the A/RLOOKS update from previous commit, this allows preparing metadata for both regular and iono interferograms in different resolutions.
+ objects.stackDict.py:
- ifgramStackDict.get_size(): add geom_obj arg to be able to use the size from the reference geometry file, for the low-resolution ion file, needed for run_or_skip() checking in load_data.py
- ifgramStackDict.write2hdf5(): add geom_obj arg, to auto detect the low-reso ion file, for resizing on the fly
- ifgramDict.read(): add resize2shape arg to resize on the fly using skimage.transform.resize(), and make it compatible with the exiting subset and resampling options.
+ load_data.py: support multiple stack files loading in one command line, which is more flexible and simpler
- remove the obsolete --ion option, as it's not needed anymore
- remove the rarely used --output options, and use the hardwired values in the code, for simplification
- code refactoring
- update to the latest usage of prep_isce.py, to support loading regular and ion interferograms at the same command line call
- use a for loop to load the following multiple stack HDF5 files:
- ifgramStack.h5
- ionStack.h5
- offsetStack.h5
+ diff.py: light refactoring
5 tasks
yunjunz
added a commit
to yunjunz/MintPy
that referenced
this pull request
Jun 17, 2022
+ utils.isce_utils.extract_geometry_metadata():
- extract LENGTH & WIDTH, as reference for the A/RLOOKS
- update attribute if box is not None
- simplify its usage in prep_fringe.py
+ prep_isce.py: simplify and support multiple obs files w/ different resolutions
- prepare_stack(): update A/R/NCORRLOOKS & AZ/RG_PIXEL_SIZE if the input obs file has a different size than the stack.rsc file, to better reflect the truth, e.g. for low-resolution iono file.
- Note that LENGTH/WIDTH/Y/X_FIRST/STEP is already extracted from the obs file, thus, no need for checking or updating to reflect the truth.
- replace the combination of `-f/-d` with the single `-f` option for a simpler and more robust logic to grab all data files in a given path pattern.
+ objects.stackDict.py:
- ifgramStackDict.get_size(): add geom_obj arg to be able to use the size from the reference geometry file, for the low-resolution ion file, needed for run_or_skip() checking in load_data.py
- ifgramStackDict.write2hdf5(): add geom_obj arg, to auto detect the low-reso ion file, for resizing on the fly
- ifgramDict.read(): add resize2shape arg to resize on the fly using skimage.transform.resize(), and make it compatible with the exiting subset and resampling options.
+ load_data.py: support multiple stack files loading in one command line, which is more flexible and simpler
- remove the obsolete --ion option, as it's not needed anymore
- remove the rarely used --output options, and use the hardwired values in the code, for simplification
- code refactoring
- update to the latest usage of prep_isce.py, to support loading regular and ion interferograms at the same command line call
- use a for loop to load the following multiple stack HDF5 files:
- ifgramStack.h5
- ionStack.h5
- offsetStack.h5
+ diff.py: light refactoring
yuankailiu
added a commit
to yuankailiu/MintPy
that referenced
this pull request
Jun 17, 2022
Allow different options of multilook interpolation while loading data by parsing a method variable + 'nearest' method (default) + 'mean' method + 'median' method Propagate the method variable from the template file named as mintpy.load.stepMethod Merge and resolve conflicts with insarlab#796
yunjunz
pushed a commit
to yuankailiu/MintPy
that referenced
this pull request
Jun 21, 2022
Allow different options of multilook interpolation while loading data by parsing a method variable + 'nearest' method (default) + 'mean' method + 'median' method Propagate the method variable from the template file named as mintpy.load.stepMethod Merge and resolve conflicts with insarlab#796
yunjunz
pushed a commit
to yuankailiu/MintPy
that referenced
this pull request
Jun 22, 2022
Allow different options of multilook interpolation while loading data by parsing a method variable + 'nearest' method (default) + 'mean' method + 'median' method Propagate the method variable from the template file named as mintpy.load.stepMethod Merge and resolve conflicts with insarlab#796
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 supports loading multiple stack files in one command line, to simplify its usage, e.g.:
ifgramStack.h5for regular interferogramsionStack.h5for ionosphere estimateoffsetStack.h5for range/azimuth offsetsIt also resizes the low-resolution ionosphere, such as provided by isce2/topsStack, to the same spatial extent as the regular interferograms during the loading process, to simplify the operations afterward.
Changes / simplications in the following scripts are made to support the above capability:
objects/stackDict.pyprep_isce.pyload_data.pyReminders