eodash_catalog 0.0.19__tar.gz → 0.0.21__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.
Potentially problematic release.
This version of eodash_catalog might be problematic. Click here for more details.
- {eodash_catalog-0.0.19 → eodash_catalog-0.0.21}/.bumpversion.cfg +1 -1
- {eodash_catalog-0.0.19 → eodash_catalog-0.0.21}/PKG-INFO +1 -1
- {eodash_catalog-0.0.19 → eodash_catalog-0.0.21}/src/eodash_catalog/__about__.py +1 -1
- {eodash_catalog-0.0.19 → eodash_catalog-0.0.21}/src/eodash_catalog/endpoints.py +3 -3
- {eodash_catalog-0.0.19 → eodash_catalog-0.0.21}/src/eodash_catalog/stac_handling.py +2 -0
- {eodash_catalog-0.0.19 → eodash_catalog-0.0.21}/.github/workflows/ci.yml +0 -0
- {eodash_catalog-0.0.19 → eodash_catalog-0.0.21}/.github/workflows/python-publish.yml +0 -0
- {eodash_catalog-0.0.19 → eodash_catalog-0.0.21}/.gitignore +0 -0
- {eodash_catalog-0.0.19 → eodash_catalog-0.0.21}/.vscode/extensions.json +0 -0
- {eodash_catalog-0.0.19 → eodash_catalog-0.0.21}/.vscode/settings.json +0 -0
- {eodash_catalog-0.0.19 → eodash_catalog-0.0.21}/LICENSE.txt +0 -0
- {eodash_catalog-0.0.19 → eodash_catalog-0.0.21}/README.md +0 -0
- {eodash_catalog-0.0.19 → eodash_catalog-0.0.21}/pyproject.toml +0 -0
- {eodash_catalog-0.0.19 → eodash_catalog-0.0.21}/requirements.txt +0 -0
- {eodash_catalog-0.0.19 → eodash_catalog-0.0.21}/ruff.toml +0 -0
- {eodash_catalog-0.0.19 → eodash_catalog-0.0.21}/src/eodash_catalog/__init__.py +0 -0
- {eodash_catalog-0.0.19 → eodash_catalog-0.0.21}/src/eodash_catalog/duration.py +0 -0
- {eodash_catalog-0.0.19 → eodash_catalog-0.0.21}/src/eodash_catalog/generate_indicators.py +0 -0
- {eodash_catalog-0.0.19 → eodash_catalog-0.0.21}/src/eodash_catalog/sh_endpoint.py +0 -0
- {eodash_catalog-0.0.19 → eodash_catalog-0.0.21}/src/eodash_catalog/thumbnails.py +0 -0
- {eodash_catalog-0.0.19 → eodash_catalog-0.0.21}/src/eodash_catalog/utils.py +0 -0
- {eodash_catalog-0.0.19 → eodash_catalog-0.0.21}/tests/__init__.py +0 -0
- {eodash_catalog-0.0.19 → eodash_catalog-0.0.21}/tests/test-data/regional_forecast.json +0 -0
- {eodash_catalog-0.0.19 → eodash_catalog-0.0.21}/tests/test_generate.py +0 -0
- {eodash_catalog-0.0.19 → eodash_catalog-0.0.21}/tests/testing-catalogs/testing.yaml +0 -0
- {eodash_catalog-0.0.19 → eodash_catalog-0.0.21}/tests/testing-collections/test_CROPOMAT1.yaml +0 -0
- {eodash_catalog-0.0.19 → eodash_catalog-0.0.21}/tests/testing-collections/test_see_solar_energy.yaml +0 -0
- {eodash_catalog-0.0.19 → eodash_catalog-0.0.21}/tests/testing-collections/test_tif_demo_1.yaml +0 -0
- {eodash_catalog-0.0.19 → eodash_catalog-0.0.21}/tests/testing-collections/test_tif_demo_2.yaml +0 -0
- {eodash_catalog-0.0.19 → eodash_catalog-0.0.21}/tests/testing-collections/test_wms_no_time.yaml +0 -0
- {eodash_catalog-0.0.19 → eodash_catalog-0.0.21}/tests/testing-indicators/test_indicator.yaml +0 -0
- {eodash_catalog-0.0.19 → eodash_catalog-0.0.21}/tests/testing-layers/baselayers.yaml +0 -0
- {eodash_catalog-0.0.19 → eodash_catalog-0.0.21}/tests/testing-layers/overlays.yaml +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: eodash_catalog
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.21
|
|
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
|
|
@@ -45,11 +45,11 @@ def process_STAC_Datacube_Endpoint(
|
|
|
45
45
|
stac_endpoint_url = stac_endpoint_url + endpoint_config.get("StacEndpoint", "")
|
|
46
46
|
# assuming /search not implemented
|
|
47
47
|
api = Client.open(stac_endpoint_url)
|
|
48
|
-
collection_id = endpoint_config.get("
|
|
48
|
+
collection_id = endpoint_config.get("DatacubeId", "")
|
|
49
49
|
coll = api.get_collection(collection_id)
|
|
50
50
|
if not coll:
|
|
51
51
|
raise ValueError(f"Collection {collection_id} not found in endpoint {endpoint_config}")
|
|
52
|
-
item_id = endpoint_config.get("
|
|
52
|
+
item_id = endpoint_config.get("CollectionId", "datacube")
|
|
53
53
|
item = coll.get_item(item_id)
|
|
54
54
|
if not item:
|
|
55
55
|
raise ValueError(f"Item {item_id} not found in collection {coll}")
|
|
@@ -677,7 +677,7 @@ def add_visualization_info(
|
|
|
677
677
|
vmin = endpoint_config["Rescale"][0]
|
|
678
678
|
vmax = endpoint_config["Rescale"][1]
|
|
679
679
|
# depending on numerical input only
|
|
680
|
-
data_projection = endpoint_config.get("DataProjection", 3857)
|
|
680
|
+
data_projection = str(endpoint_config.get("DataProjection", 3857))
|
|
681
681
|
epsg_prefix = "" if "EPSG:" in data_projection else "EPSG:"
|
|
682
682
|
crs = f"{epsg_prefix}{data_projection}"
|
|
683
683
|
target_url = (
|
|
@@ -365,6 +365,8 @@ def add_extra_fields(stac_object: Collection | Link, collection_config: dict) ->
|
|
|
365
365
|
stac_object.extra_fields["agency"] = collection_config["Agency"]
|
|
366
366
|
if "EodashIdentifier" in collection_config:
|
|
367
367
|
stac_object.extra_fields["subcode"] = collection_config["EodashIdentifier"]
|
|
368
|
+
if "CollectionGroup" in collection_config:
|
|
369
|
+
stac_object.extra_fields["collection_group"] = collection_config["CollectionGroup"]
|
|
368
370
|
if "DataSource" in collection_config:
|
|
369
371
|
if "Spaceborne" in collection_config["DataSource"]:
|
|
370
372
|
if "Sensor" in collection_config["DataSource"]["Spaceborne"]:
|
|
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
|
|
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
|
{eodash_catalog-0.0.19 → eodash_catalog-0.0.21}/tests/testing-collections/test_CROPOMAT1.yaml
RENAMED
|
File without changes
|
{eodash_catalog-0.0.19 → eodash_catalog-0.0.21}/tests/testing-collections/test_see_solar_energy.yaml
RENAMED
|
File without changes
|
{eodash_catalog-0.0.19 → eodash_catalog-0.0.21}/tests/testing-collections/test_tif_demo_1.yaml
RENAMED
|
File without changes
|
{eodash_catalog-0.0.19 → eodash_catalog-0.0.21}/tests/testing-collections/test_tif_demo_2.yaml
RENAMED
|
File without changes
|
{eodash_catalog-0.0.19 → eodash_catalog-0.0.21}/tests/testing-collections/test_wms_no_time.yaml
RENAMED
|
File without changes
|
{eodash_catalog-0.0.19 → eodash_catalog-0.0.21}/tests/testing-indicators/test_indicator.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|