Commit fc2a9115 authored by Mario Chirinos's avatar Mario Chirinos

api v2

parent 63ba561b
......@@ -114,7 +114,8 @@ def findSentinelProducts(cfg, uinput = False, limitto = 0):#main(argv):
text = input("Do you want to link this products to "+linksDir+ " ? (yes, no)")
if uinput==False or text=="yes":
fileNames = [productList[k]['filename'].replace("SAFE", "zip").replace("L1C", "L2A") for k in productList.keys() ]
# fileNames = [productList[k]['filename'].replace("SAFE", "zip").replace("L1C", "L2A") for k in productList.keys() ]
fileNames = [k.replace("SAFE", "zip") for k in productList.keys() ]
dirList = os.listdir(L2ADir)
matchingProducts = set(fileNames).intersection(set(dirList))
......
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