Commit 44abb2e1 authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

find Products

parent 4abcd24e
......@@ -40,14 +40,17 @@ def main(argv):
fileNames = [productList[k]['filename'].replace("SAFE", "ZIP").replace("L1C", "L2A") for k in productList.keys() ]
# print(fileNames)
dirList = os.listdir(sys.argv[6])
inDir = sys.argv[6]
outdir = sys.argv[7]
dirList = os.listdir(inDir)
matchingProducts = list(set(fileNames) & set(fileNames))
print ( str(len(matchingProducts))+" of " + str(len(productList)) +" products found.")
outdir = sys.argv[7]
for f in matchingProducts:
os.system("ln -s " + f + " " + outdir+f)
os.system("ln -s " + indir+f + " " + outdir+f)
print (str(len(matchingProducts)) + " Linked to " + outdir)
......
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