Commit aeb55c96 authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

find Products

parent 0d46a86e
...@@ -32,13 +32,13 @@ def findSentinelProducts(wkt, startDate, endDate, platform, cloud): ...@@ -32,13 +32,13 @@ def findSentinelProducts(wkt, startDate, endDate, platform, cloud):
def main(argv): def main(argv):
if len(sys.argv) != 7: if len(sys.argv) != 7:
print("Usage: " + argv[0] + "<WKT Polygon> <Start Date> <End Date> <Platform> <Maximum Cloud %> <Destination>") print("Usage: " + argv[0] + " <WKT Polygon> <Start Date> <End Date> <Platform> <Maximum Cloud %> <Destination>")
else: else:
# with suppress_stdout(): # with suppress_stdout():
# with contextlib.redirect_stdout(None): # with contextlib.redirect_stdout(None):
list = findSentinelProducts(sys.argv[1], sys.argv[2], sys.argv[3], sys.argv[4], sys.argv[5]) list = findSentinelProducts(sys.argv[1], sys.argv[2], sys.argv[3], sys.argv[4], sys.argv[5])
for l in list: for l in list:
print(l['filename']) print(list[l]['filename'])
print(json.dumps(list)) print(json.dumps(list))
if __name__ == "__main__": if __name__ == "__main__":
......
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