diff --git a/eedl.py b/eedl.py index e7dcef4..a3a065b 100644 --- a/eedl.py +++ b/eedl.py @@ -16,12 +16,14 @@ import os import shutil from multiprocessing import cpu_count + import ee -import requests -from retry import retry import numpy as np import pyproj +import requests +from retry import retry from tqdm.contrib.concurrent import process_map + from getMGRS import getMGRS ee.Initialize() diff --git a/getMGRS.py b/getMGRS.py index c548836..0e57198 100644 --- a/getMGRS.py +++ b/getMGRS.py @@ -5,6 +5,7 @@ Author: Kyle McCleary """ import argparse + import numpy as np LONSTEP = 6 @@ -45,6 +46,13 @@ def getMGRS(): parser = argparse.ArgumentParser() parser.add_argument('-k','--key',default=None,type=str) args = parser.parse_args() + grid = getMGRS() if args.key: - grid = getMGRS() - print(grid[args.key]) \ No newline at end of file + print(grid[args.key]) + else: + print(grid) + + + + + diff --git a/requirements.txt b/requirements.txt index ce268b6..3832d65 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -aiohttp==3.9.2 +aiohttp==3.9.5 aiosignal==1.3.1 async-timeout==4.0.3 attrs==23.2.0 @@ -21,7 +21,7 @@ google-cloud-storage==2.14.0 google-crc32c==1.1.2 google-resumable-media==2.7.0 googleapis-common-protos==1.62.0 -grpcio==1.53.2 +grpcio==1.48.1 httplib2==0.22.0 idna==3.6 multidict==6.0.5 @@ -48,4 +48,4 @@ uritemplate==4.1.1 urllib3==2.2.0 wheel==0.41.2 win-inet-pton==1.1.0 -yarl==1.9.4 \ No newline at end of file +yarl==1.9.4