Skip to content

Commit

Permalink
Enhance compute_interferogram() function stack argument processing
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Pechnikov committed Jul 6, 2024
1 parent fe5f294 commit a7e93f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygmtsar/pygmtsar/Stack_phasediff.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def compute_interferogram(self, pairs, name, resolution=None, weight=None, phase
del corr_look, intf_look

if isinstance(stack, xr.DataArray):
out = out.stack(stack=['y', 'x']).sel(stack=stack)
out = out.interp(y=stack.y, x=stack.x, method='nearest')

caption = f'Saving Interferogram {(counter+1):0{digits}}...{(counter+len(chunk)):0{digits}} from {len(pairs)}'
self.save_stack(out, name, caption=caption, queue=queue, timeout=timeout)
Expand Down

0 comments on commit a7e93f2

Please sign in to comment.