Skip to content

Commit

Permalink
[S1.OSV] fixed bug in searching STEP repository
Browse files Browse the repository at this point in the history
  • Loading branch information
johntruckenbrodt committed Nov 5, 2024
1 parent b55b432 commit d4eec7f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pyroSAR/S1/auxil.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
###############################################################################
# general utilities for Sentinel-1

# Copyright (c) 2016-2023, the pyroSAR Developers.
# Copyright (c) 2016-2024, the pyroSAR Developers.

# This file is part of the pyroSAR Project. It is subject to the
# license terms in the LICENSE.txt file found in the top-level
Expand Down Expand Up @@ -231,6 +231,7 @@ def __catch_step_auxdata(self, sensor, start, stop, osvtype='POE'):
sensor = [sensor]

files = []
date_search_final = datetime(year=stop.year, month=stop.month, day=1)
for sens in sensor:
date_search = datetime(year=start.year,
month=start.month,
Expand Down Expand Up @@ -258,7 +259,7 @@ def __catch_step_auxdata(self, sensor, start, stop, osvtype='POE'):
files.append({'filename': file,
'href': url_sub + '/' + file + '.zip',
'auth': None})
if start2 >= stop:
if date_search == date_search_final:
busy = False
date_search += relativedelta(months=1)
if date_search > datetime.now():
Expand Down Expand Up @@ -391,7 +392,7 @@ def catch(self, sensor, osvtype='POE', start=None, stop=None, url_option=1):
- 'S1A'
- 'S1B'
- ['S1A', 'S1B']
osvtype: str or list[str]
osvtype: str
the type of orbit files required
start: str or None
the date to start searching for files in format YYYYmmddTHHMMSS
Expand Down

0 comments on commit d4eec7f

Please sign in to comment.