Commit 63ba561b authored by Mario Chirinos's avatar Mario Chirinos

api v2

parent 7bf86fe7
......@@ -74,10 +74,10 @@ def findSentinelProducts(cfg, uinput = False, limitto = 0):#main(argv):
text = input("Do you want to download this products to "+downloadDir+ " ? (yes, no)")
if uinput==False or text=="yes":
longTermArchiveList = sentinel.downloadProducts(downloadList, downloadDir)
if len(longTermArchiveList)>0:
print( str(len(longTermArchiveList)) + " products are in the long term archive" )
with open(cfg["projectDir"]+'longTermArchiv.json', 'w') as outfile:
json.dump(longTermArchiveList, outfile)
# if len(longTermArchiveList)>0:
# print( str(len(longTermArchiveList)) + " products are in the long term archive" )
# with open(cfg["projectDir"]+'longTermArchiv.json', 'w') as outfile:
# json.dump(longTermArchiveList, outfile)
L2ADir = cfg["productsDir"]+"L2A/"
# if cfg["productLevel"]=="L1C":
......
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