eodash_catalog 0.2.1__tar.gz → 0.3.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.
- {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/.bumpversion.cfg +1 -1
- {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/Dockerfile +1 -1
- {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/PKG-INFO +2 -2
- {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/pyproject.toml +1 -1
- {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/requirements.txt +1 -1
- {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/ruff.toml +1 -1
- {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/src/eodash_catalog/__about__.py +1 -1
- {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/src/eodash_catalog/duration.py +9 -11
- {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/src/eodash_catalog/endpoints.py +183 -101
- {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/src/eodash_catalog/generate_indicators.py +85 -45
- {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/src/eodash_catalog/utils.py +164 -43
- {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/tests/test_generate.py +1 -0
- {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/tests/test_geoparquet.py +2 -4
- {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/tests/testing-catalogs/testing.yaml +17 -2
- eodash_catalog-0.3.0/tests/testing-collections/test_cmems.json +68 -0
- eodash_catalog-0.3.0/tests/testing-collections/test_cog.json +101 -0
- eodash_catalog-0.3.0/tests/testing-collections/test_geodb.yaml +37 -0
- eodash_catalog-0.3.0/tests/testing-collections/test_geodb_locations.yaml +56 -0
- eodash_catalog-0.3.0/tests/testing-collections/test_geojson.yaml +51 -0
- eodash_catalog-0.3.0/tests/testing-collections/test_process.yaml +31 -0
- eodash_catalog-0.3.0/tests/testing-collections/test_projection.json +142 -0
- eodash_catalog-0.3.0/tests/testing-collections/test_sh_wms.json +68 -0
- eodash_catalog-0.3.0/tests/testing-collections/test_sh_wms_locations.json +81 -0
- eodash_catalog-0.3.0/tests/testing-collections/test_veda.json +91 -0
- eodash_catalog-0.3.0/tests/testing-collections/test_veda_tiles.json +37 -0
- {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/.dockerignore +0 -0
- {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/.github/workflows/ci.yml +0 -0
- {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/.github/workflows/python-publish.yml +0 -0
- {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/.gitignore +0 -0
- {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/.vscode/extensions.json +0 -0
- {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/.vscode/settings.json +0 -0
- {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/LICENSE.txt +0 -0
- {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/README.md +0 -0
- {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/src/eodash_catalog/__init__.py +0 -0
- {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/src/eodash_catalog/sh_endpoint.py +0 -0
- {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/src/eodash_catalog/stac_handling.py +0 -0
- {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/src/eodash_catalog/thumbnails.py +0 -0
- {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/tests/__init__.py +0 -0
- {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/tests/test-data/regional_forecast.json +0 -0
- {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/tests/testing-catalogs/testing-json.json +0 -0
- {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/tests/testing-collections/test_CROPOMAT1.yaml +0 -0
- {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/tests/testing-collections/test_locations_processing.json +0 -0
- {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/tests/testing-collections/test_see_solar_energy.yaml +0 -0
- {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/tests/testing-collections/test_tif_demo_1.yaml +0 -0
- {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/tests/testing-collections/test_tif_demo_1_json.json +0 -0
- {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/tests/testing-collections/test_tif_demo_2.yaml +0 -0
- {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/tests/testing-collections/test_wms_no_time.yaml +0 -0
- {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/tests/testing-indicators/test_indicator.yaml +0 -0
- {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/tests/testing-layers/baselayers.yaml +0 -0
- {eodash_catalog-0.2.1 → eodash_catalog-0.3.0}/tests/testing-layers/overlays.yaml +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: eodash_catalog
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: This package is intended to help create a compatible STAC catalog for the eodash dashboard client. It supports configuration of multiple endpoint types for information extraction.
|
|
5
5
|
Project-URL: Documentation, https://github.com/eodash/eodash_catalog#readme
|
|
6
6
|
Project-URL: Issues, https://github.com/eodash/eodash_catalog/issues
|
|
@@ -29,7 +29,7 @@ Requires-Dist: requests-oauthlib<1.3.2
|
|
|
29
29
|
Requires-Dist: requests<3
|
|
30
30
|
Requires-Dist: setuptools<71
|
|
31
31
|
Requires-Dist: spdx-lookup<=0.3.3
|
|
32
|
-
Requires-Dist: stac-geoparquet<=0.
|
|
32
|
+
Requires-Dist: stac-geoparquet<=0.7.0
|
|
33
33
|
Requires-Dist: structlog<22.0
|
|
34
34
|
Description-Content-Type: text/markdown
|
|
35
35
|
|
|
@@ -34,7 +34,7 @@ def max_days_in_month(year, month):
|
|
|
34
34
|
return 31
|
|
35
35
|
if month in (4, 6, 9, 11):
|
|
36
36
|
return 30
|
|
37
|
-
if ((year % 400) == 0) or ((year % 100) != 0) and ((year % 4) == 0):
|
|
37
|
+
if ((year % 400) == 0) or (((year % 100) != 0) and ((year % 4) == 0)):
|
|
38
38
|
return 29
|
|
39
39
|
return 28
|
|
40
40
|
|
|
@@ -260,11 +260,10 @@ class Duration:
|
|
|
260
260
|
the two Durations are considered equal.
|
|
261
261
|
"""
|
|
262
262
|
if isinstance(other, Duration):
|
|
263
|
-
|
|
264
|
-
other.years * 12 + other.months
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
return False
|
|
263
|
+
return bool(
|
|
264
|
+
self.years * 12 + self.months == other.years * 12 + other.months
|
|
265
|
+
and self.tdelta == other.tdelta
|
|
266
|
+
)
|
|
268
267
|
# check if other con be compared against timedelta object
|
|
269
268
|
# will raise an AssertionError when optimisation is off
|
|
270
269
|
if self.years == 0 and self.months == 0:
|
|
@@ -277,11 +276,10 @@ class Duration:
|
|
|
277
276
|
the two Durations are considered not equal.
|
|
278
277
|
"""
|
|
279
278
|
if isinstance(other, Duration):
|
|
280
|
-
|
|
281
|
-
other.years * 12 + other.months
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
return False
|
|
279
|
+
return bool(
|
|
280
|
+
self.years * 12 + self.months != other.years * 12 + other.months
|
|
281
|
+
or self.tdelta != other.tdelta
|
|
282
|
+
)
|
|
285
283
|
# check if other can be compared against timedelta object
|
|
286
284
|
# will raise an AssertionError when optimisation is off
|
|
287
285
|
if self.years == 0 and self.months == 0:
|