Commit e04e8bb1 authored by Lozac'h Loic's avatar Lozac'h Loic
Browse files

debug

parent 000ffac0
......@@ -66,12 +66,15 @@ class EodagS1Downloader():
mpolywkt= str(qs_tile[0].wgs84.ewkt).split(";")
print(mpolywkt[1])
self.mEODataAccessGateway = EODataAccessGateway(self.user_conf_file_path)
self.mEODataAccessGateway = EODataAccessGateway(user_conf_file_path=self.user_conf_file_path)
product_type = 'S1_SAR_GRD'
sensor_mode = 'IW'
print(self.mEODataAccessGateway.available_providers(product_type))
print("Search on Scihub...")
self.mEODataAccessGateway.set_preferred_provider("scihub")
product_type = 'S1_SAR_GRD'
sensor_mode = 'IW'
products_scihub, estimated_scihub_of_results = self.mEODataAccessGateway.search(
productType=product_type,
......@@ -201,7 +204,7 @@ class EodagS1Downloader():
if failed and len(products_availability[p]) == 2:
secndprovider = products_availability[p][1].provider
failed=False
print("Download failed. Trying with {secndprovider}")
print(f"\nDownload failed. Trying with {secndprovider}")
self.mEODataAccessGateway.set_preferred_provider(secndprovider)
try:
with closing(StringIO()) as tqdm_out:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment