Skip to content

Commit

Permalink
ifgramStack.get_sequential_closure_phase(): grab processor info from …
Browse files Browse the repository at this point in the history
…more metadata
  • Loading branch information
yunjunz committed Aug 1, 2024
1 parent f7ac98f commit f9a2252
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Binary file added src/mintpy/objects/.stack.py.swp
Binary file not shown.
7 changes: 6 additions & 1 deletion src/mintpy/objects/stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,12 @@ def get_sequential_closure_phase(self, box, conn, post_proc=None):
# to avoid the abnormal result as shown in https://github.com/insarlab/MintPy/pull/1063
# This may be caused by the phase stitching during product preparation via ARIA-tools,
# which could have broken the temporal consistency of the native unwrapped phase.
processor = self.metadata.get('mintpy.load.processor', 'isce')
processor = 'isce'
keys = ['mintpy.load.processor', 'PROCESSOR']
for key in keys:
if key in self.metadata.keys() and self.metadata[key]:
processor = self.metadata[key]
break
if ds_name == 'unwrapPhase' and processor in ['aria']:
print(f'apply spatial referencing to {processor} products')
ref_phase = self.get_reference_phase(dropIfgram=False)
Expand Down

0 comments on commit f9a2252

Please sign in to comment.