Commit 09ee7991 authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

find products

parent 27703b5c
......@@ -29,8 +29,8 @@ def main(argv):
wkt = polygonToBox.getWKTPolygonBoundingBox(cfg['wkt'], True)
productList = findSentinelProducts(wkt, cfg['startDate'], cfg['endDate'], cfg['platform'], cfg['clouds'])
fileNames = [productList[k]['filename'].replace("SAFE", "zip").replace(productList[k]['filename'][:3], cfg['productLevel']) for k in productList.keys() ]
productsCodes = {"L2A":"L1C"}
fileNames = [productList[k]['filename'].replace("SAFE", "zip").replace(productsCodes[cfg['productLevel']], cfg['productLevel']) for k in productList.keys() ]
print(fileNames)
inDir = cfg["productsDir"]
outdir = cfg["linksDir"]
......
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