From 62099b81c47126c2d159ae210c08aee7ed76bada Mon Sep 17 00:00:00 2001 From: Alexey Pechnikov Date: Sat, 3 Aug 2024 00:14:41 +0700 Subject: [PATCH] Temporally set unwrap matrix equal to least-squares matrix. --- pygmtsar/pygmtsar/Stack_unwrap.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pygmtsar/pygmtsar/Stack_unwrap.py b/pygmtsar/pygmtsar/Stack_unwrap.py index cbdbd216..77f1cd64 100644 --- a/pygmtsar/pygmtsar/Stack_unwrap.py +++ b/pygmtsar/pygmtsar/Stack_unwrap.py @@ -399,7 +399,9 @@ def unwrap_matrix(self, pairs): -1 indicating the end date, 0 if the date is covered by the corresponding interferogram timeline, and NaN otherwise. """ - return self.get_pairs_matrix(pairs) + #return self.get_pairs_matrix(pairs) + # revert temporally for backward compatibility + return (self.get_pairs_matrix(pairs)>=0).astype(int) def unwrap1d(self, data, weight=None, tolerance=np.pi/2): import xarray as xr