glam-processing 0.3.2__tar.gz → 0.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {glam_processing-0.3.2 → glam_processing-0.4.0}/PKG-INFO +1 -1
- {glam_processing-0.3.2 → glam_processing-0.4.0}/glam_processing/download.py +5 -3
- {glam_processing-0.3.2 → glam_processing-0.4.0}/pyproject.toml +1 -1
- {glam_processing-0.3.2 → glam_processing-0.4.0}/README.md +0 -0
- {glam_processing-0.3.2 → glam_processing-0.4.0}/glam_processing/__init__.py +0 -0
- {glam_processing-0.3.2 → glam_processing-0.4.0}/glam_processing/cli.py +0 -0
- {glam_processing-0.3.2 → glam_processing-0.4.0}/glam_processing/config/__init__.py +0 -0
- {glam_processing-0.3.2 → glam_processing-0.4.0}/glam_processing/config/clms.py +0 -0
- {glam_processing-0.3.2 → glam_processing-0.4.0}/glam_processing/config/settings.py +0 -0
- {glam_processing-0.3.2 → glam_processing-0.4.0}/glam_processing/earthdata.py +0 -0
- {glam_processing-0.3.2 → glam_processing-0.4.0}/glam_processing/exceptions.py +0 -0
- {glam_processing-0.3.2 → glam_processing-0.4.0}/glam_processing/spectral.py +0 -0
- {glam_processing-0.3.2 → glam_processing-0.4.0}/glam_processing/utils.py +0 -0
|
@@ -154,8 +154,10 @@ class EarthDataDownloader(GlamDownloader):
|
|
|
154
154
|
def auth(self, value):
|
|
155
155
|
if not value.authenticated:
|
|
156
156
|
try:
|
|
157
|
-
|
|
157
|
+
# try to retreive credentials from environment first
|
|
158
|
+
value.login(strategy="environment")
|
|
158
159
|
except:
|
|
160
|
+
# otherwise prompt for credentials
|
|
159
161
|
value.login(strategy="interactive", persist=True)
|
|
160
162
|
self._auth = value
|
|
161
163
|
|
|
@@ -314,7 +316,7 @@ class CLMSDownloader(GlamDownloader):
|
|
|
314
316
|
|
|
315
317
|
def query_composites(self, start_date, end_date):
|
|
316
318
|
|
|
317
|
-
r = requests.get(self.manifest)
|
|
319
|
+
r = requests.get(self.manifest, verify=False)
|
|
318
320
|
download_list = r.text.split("\n")
|
|
319
321
|
|
|
320
322
|
composites = []
|
|
@@ -346,7 +348,7 @@ class CLMSDownloader(GlamDownloader):
|
|
|
346
348
|
date = composite.get("date")
|
|
347
349
|
url = composite.get("url")
|
|
348
350
|
|
|
349
|
-
r = requests.get(url)
|
|
351
|
+
r = requests.get(url, verify=False)
|
|
350
352
|
|
|
351
353
|
out = os.path.join(out_dir, f"{self.dataset}.{date}.tif")
|
|
352
354
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|