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

find products

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