Skip to content

Commit

Permalink
Merge pull request #40 from scottstanie/fix-select-orbit
Browse files Browse the repository at this point in the history
Fix select orbit
  • Loading branch information
scottstanie authored Aug 18, 2023
2 parents 23b0cd4 + 214aa08 commit de2d170
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
1 change: 0 additions & 1 deletion eof/scihubclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ def query_orbit_by_dt(
products,
dt,
dt + timedelta(minutes=1),
orbit_type=orbit_type,
)
if products
else None
Expand Down
14 changes: 14 additions & 0 deletions eof/tests/test_scihubclient.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import datetime

from eof.scihubclient import ScihubGnssClient


def test_query_orbit_by_dr():
dt = datetime.datetime(2020, 1, 1)
missions = ["S1A"]
c = ScihubGnssClient()
results = c.query_orbit_by_dt([dt], missions, orbit_type="restituted")
assert len(results) == 1
r = results["9a844886-45e7-48ec-8bc4-5d9ea91f0553"]
assert r["endposition"] > dt
assert r["beginposition"] < dt
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="sentineleof",
version="0.8.0",
version="0.8.1",
author="Scott Staniewicz",
author_email="[email protected]",
description="Download precise orbit files for Sentinel 1 products",
Expand Down

0 comments on commit de2d170

Please sign in to comment.