Commit 492da134 authored by Lozac'h Loic's avatar Lozac'h Loic
Browse files

debug

parent 61dbe3ec
......@@ -91,26 +91,37 @@ class EodagS1Downloader():
nbsci_online=0
products_availability={}
for ps in products_scihub :
if ps.properties["storageStatus"] == "ONLINE":
nbsci_online += 1
found=False
for pp in products_peps :
if pp.properties["id"] == ps.properties["id"]:
products_availability[ps.properties["id"]] = [ps,pp]
if ps.properties["storageStatus"] == "ONLINE" and pp.properties["storageStatus"] == "ONLINE":
products_availability[ps.properties["id"]] = [ps,pp]
nbsci_online += 1
nbpeps_online += 1
elif ps.properties["storageStatus"] == "ONLINE" and pp.properties["storageStatus"] == "OFFLINE":
products_availability[ps.properties["id"]] = [ps,pp]
nbsci_online += 1
elif ps.properties["storageStatus"] == "OFFLINE" and pp.properties["storageStatus"] == "ONLINE":
products_availability[ps.properties["id"]] = [pp,ps]
nbpeps_online += 1
elif ps.properties["storageStatus"] == "OFFLINE" and pp.properties["storageStatus"] == "OFFLINE":
products_availability[ps.properties["id"]] = [ps,pp]
found=True
break
if found == False:
products_availability[ps.properties["id"]] = [ps]
if ps.properties["storageStatus"] == "ONLINE":
nbsci_online += 1
nbpeps_online=0
for pp in products_peps :
found=False
if pp.properties["storageStatus"] == "ONLINE":
nbpeps_online += 1
if not pp.properties["id"] in products_availability.keys():
products_availability[pp.properties["id"]] = [pp]
if pp.properties["storageStatus"] == "ONLINE":
nbpeps_online += 1
print(
f"\nScihub has got {nbsci_online} ONLINE products over {estimated_scihub_of_results}"
......
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