Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions eedl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
12 changes: 10 additions & 2 deletions getMGRS.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Author: Kyle McCleary
"""
import argparse

import numpy as np

LONSTEP = 6
Expand Down Expand Up @@ -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])
print(grid[args.key])
else:
print(grid)





6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -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
yarl==1.9.4