productList=sentinel.getProducts(wkt,(cfg['startDate'],cfg['endDate']),{"platformname":cfg['platform'],"cloudcoverpercentage":"[0 TO "+str(cfg['clouds'])+"]"},"Contains")
productList=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']),{"platformname":cfg['platform'],"cloudcoverpercentage":"[0 TO "+str(cfg['clouds'])+"]"})
productList=sentinel.getProducts(wkt,(cfg['startDate'],cfg['endDate']),{"producttype":productType[cfg["productLevel"]],"platformname":cfg['platform'],"cloudcoverpercentage":"[0 TO "+str(cfg['clouds'])+"]"})
# fileNames = [productList[k]['filename'].replace("SAFE", "zip").replace(productsCodes[cfg['productLevel']], cfg['productLevel']) for k in productList.keys() ]