Commit 9793cf91 authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

find Products

parent 196d0a77
......@@ -26,8 +26,8 @@ def findSentinelProducts(wkt, startDate, endDate, platform, cloud):
products = sentinel.getProducts(wkt, (startDate, endDate), {"platformname":platform, "cloudcoverpercentage":"[0 TO "+str(cloud)+"]"})
list = [k for k in products.keys()]
return list
# list = [k for k in products.keys()]
return products
def main(argv):
......@@ -37,7 +37,7 @@ def main(argv):
# with suppress_stdout():
# with contextlib.redirect_stdout(None):
productList = findSentinelProducts(sys.argv[1], sys.argv[2], sys.argv[3], sys.argv[4], sys.argv[5])
for p in range(len(productList)):
for p in productList:
print(productList[p])
print(json.dumps(productList))
......
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