Skip to content

Commit

Permalink
By default generate all possible pairs in Stack.sbas_pairs()
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyPechnikov committed May 8, 2024
1 parent aa28250 commit 721777a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pygmtsar/pygmtsar/Stack_sbas.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand All @@ -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):
"""
Expand Down

0 comments on commit 721777a

Please sign in to comment.