From 721777a5d198be6b86e03301ef6d11e03e78ab38 Mon Sep 17 00:00:00 2001 From: Alexey Pechnikov Date: Wed, 8 May 2024 18:26:15 +0700 Subject: [PATCH] By default generate all possible pairs in Stack.sbas_pairs() --- pygmtsar/pygmtsar/Stack_sbas.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pygmtsar/pygmtsar/Stack_sbas.py b/pygmtsar/pygmtsar/Stack_sbas.py index 88d5ca79..ee0bbb1f 100644 --- a/pygmtsar/pygmtsar/Stack_sbas.py +++ b/pygmtsar/pygmtsar/Stack_sbas.py @@ -335,7 +335,7 @@ def sbas_pairs_limit(self, pairs, limit=2, iterations=1): return df - def sbas_pairs(self, days=100, meters=None, invert=False, dates=None): + def sbas_pairs(self, days=None, meters=None, invert=False, dates=None): """ Generates a sorted list of baseline pairs based on specified temporal and spatial criteria. @@ -346,7 +346,7 @@ def sbas_pairs(self, days=100, meters=None, invert=False, dates=None): Parameters ---------- days : int, optional - Maximum temporal separation between image pairs in days (default is 100). + Maximum temporal separation between image pairs in days (default is None). meters : int, optional Maximum spatial separation between image pairs in meters (default is None). invert : bool, optional @@ -361,6 +361,10 @@ def sbas_pairs(self, days=100, meters=None, invert=False, dates=None): """ import numpy as np import pandas as pd + + if days is None: + # use large number for unlimited time interval in days + days = 1e6 def baseline_table(dates): """