Skip to content

Commit

Permalink
update API URL (#520)
Browse files Browse the repository at this point in the history
  • Loading branch information
griembauer committed Apr 30, 2021
1 parent 047b7d6 commit 5e1992c
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -480,7 +480,7 @@ def download_gcs(scene, output):


class SentinelDownloader(object):
def __init__(self, user, password, api_url='https://scihub.copernicus.eu/apihub'):
def __init__(self, user, password, api_url='https://apihub.copernicus.eu/apihub'):
self._apiname = api_url
self._user = user
self._password = password
Expand All @@ -490,7 +490,7 @@ def __init__(self, user, password, api_url='https://scihub.copernicus.eu/apihub'
root.addHandler(logging.StreamHandler(
sys.stderr
))
if self._apiname == 'https://scihub.copernicus.eu/apihub':
if self._apiname == 'https://apihub.copernicus.eu/apihub':
try:
from sentinelsat import SentinelAPI
except ImportError as e:
Expand Down Expand Up @@ -916,7 +916,7 @@ def filter_USGS(self, area, area_relation, clouds=None, producttype=None,
def main():
user = password = None
if options['datasource'] == 'ESA_COAH' or options['datasource'] == 'GCS':
api_url = 'https://scihub.copernicus.eu/apihub'
api_url = 'https://apihub.copernicus.eu/apihub'
else:
api_url = 'USGS_EE'
if options['datasource'] == 'GCS' and (options['producttype'] not in
Expand Down

0 comments on commit 5e1992c

Please sign in to comment.