Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[S1.OSV] fixed bug in searching STEP repository #323

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading