productList=sentinel.getProducts(wkt,(cfg['startDate'],cfg['endDate']),{"producttype":productType[cfg["productLevel"]],"platformname":cfg['platform'],"cloudcoverpercentage":"[0 TO "+str(cfg['clouds'])+"]"},"Contains")
tmpList=sentinel.getProducts(wkt,(cfg['startDate'],cfg['endDate']),{"producttype":productType[cfg["productLevel"]],"platformname":cfg['platform'],"cloudcoverpercentage":"[0 TO "+str(cfg['clouds'])+"]"},"Contains")
iflen(productList)<=0:
print("No products found with 'Contains' trying with 'Intersects'")
productList=sentinel.getProducts(wkt,(cfg['startDate'],cfg['endDate']),{"producttype":productType[cfg["productLevel"]],"platformname":cfg['platform'],"cloudcoverpercentage":"[0 TO "+str(cfg['clouds'])+"]"})
tmpList=sentinel.getProducts(wkt,(cfg['startDate'],cfg['endDate']),{"producttype":productType[cfg["productLevel"]],"platformname":cfg['platform'],"cloudcoverpercentage":"[0 TO "+str(cfg['clouds'])+"]"})
productList.update(tmpList)
# fileNames = [productList[k]['filename'].replace("SAFE", "zip").replace(productsCodes[cfg['productLevel']], cfg['productLevel']) for k in productList.keys() ]