eodash_catalog 0.3.8__tar.gz → 0.3.10__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.3.8 → eodash_catalog-0.3.10}/.bumpversion.cfg +1 -1
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/Dockerfile +1 -1
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/PKG-INFO +1 -1
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/src/eodash_catalog/__about__.py +1 -1
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/src/eodash_catalog/endpoints.py +6 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/src/eodash_catalog/generate_indicators.py +1 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/src/eodash_catalog/utils.py +5 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/.dockerignore +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/.github/workflows/ci.yml +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/.github/workflows/python-publish.yml +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/.gitignore +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/.vscode/extensions.json +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/.vscode/settings.json +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/LICENSE.txt +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/README.md +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/pyproject.toml +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/requirements.txt +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/ruff.toml +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/src/eodash_catalog/__init__.py +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/src/eodash_catalog/duration.py +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/src/eodash_catalog/sh_endpoint.py +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/src/eodash_catalog/stac_handling.py +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/src/eodash_catalog/thumbnails.py +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/tests/__init__.py +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/tests/test-data/regional_forecast.json +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/tests/test_generate.py +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/tests/test_geoparquet.py +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/tests/testing-catalogs/testing-json.json +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/tests/testing-catalogs/testing.yaml +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/tests/testing-collections/test_CROPOMAT1.yaml +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/tests/testing-collections/test_cmems.json +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/tests/testing-collections/test_cog.json +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/tests/testing-collections/test_geodb.yaml +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/tests/testing-collections/test_geodb_locations.yaml +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/tests/testing-collections/test_geojson.yaml +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/tests/testing-collections/test_locations_processing.json +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/tests/testing-collections/test_process.yaml +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/tests/testing-collections/test_projection.json +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/tests/testing-collections/test_see_solar_energy.yaml +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/tests/testing-collections/test_sh_wms.json +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/tests/testing-collections/test_sh_wms_locations.json +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/tests/testing-collections/test_tif_demo_1.yaml +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/tests/testing-collections/test_tif_demo_1_json.json +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/tests/testing-collections/test_tif_demo_2.yaml +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/tests/testing-collections/test_veda.json +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/tests/testing-collections/test_veda_tiles.json +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/tests/testing-collections/test_wms_no_time.yaml +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/tests/testing-indicators/test_indicator.yaml +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/tests/testing-layers/baselayers.yaml +0 -0
- {eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/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.
|
|
3
|
+
Version: 0.3.10
|
|
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
|
|
@@ -20,6 +20,7 @@ from structlog import get_logger
|
|
|
20
20
|
|
|
21
21
|
from eodash_catalog.sh_endpoint import get_SH_token
|
|
22
22
|
from eodash_catalog.stac_handling import (
|
|
23
|
+
add_base_overlay_info,
|
|
23
24
|
add_collection_information,
|
|
24
25
|
add_example_info,
|
|
25
26
|
add_process_info_child_collection,
|
|
@@ -213,6 +214,8 @@ def handle_STAC_based_endpoint(
|
|
|
213
214
|
location["OverwriteBBox"],
|
|
214
215
|
]
|
|
215
216
|
)
|
|
217
|
+
add_collection_information(catalog_config, collection, collection_config)
|
|
218
|
+
add_base_overlay_info(collection, catalog_config, collection_config)
|
|
216
219
|
update_extents_from_collection_children(root_collection)
|
|
217
220
|
else:
|
|
218
221
|
bbox = None
|
|
@@ -464,6 +467,8 @@ def handle_SH_WMS_endpoint(
|
|
|
464
467
|
LOGGER.warn(f"NO datetimes configured for collection: {collection_config['Name']}!")
|
|
465
468
|
add_visualization_info(collection, collection_config, endpoint_config)
|
|
466
469
|
add_process_info_child_collection(collection, catalog_config, collection_config)
|
|
470
|
+
add_collection_information(catalog_config, collection, collection_config)
|
|
471
|
+
add_base_overlay_info(collection, catalog_config, collection_config)
|
|
467
472
|
update_extents_from_collection_children(root_collection)
|
|
468
473
|
else:
|
|
469
474
|
# if locations are not provided, treat the collection as a
|
|
@@ -910,6 +915,7 @@ def handle_GeoDB_endpoint(
|
|
|
910
915
|
link.extra_fields["country"] = country
|
|
911
916
|
link.extra_fields["name"] = city
|
|
912
917
|
add_collection_information(catalog_config, locations_collection, collection_config)
|
|
918
|
+
add_base_overlay_info(locations_collection, catalog_config, collection_config)
|
|
913
919
|
|
|
914
920
|
if "yAxis" not in collection_config:
|
|
915
921
|
# fetch yAxis and store it to data, preventing need to save it per dataset in yml
|
|
@@ -421,6 +421,7 @@ def process_collection_file(
|
|
|
421
421
|
add_collection_information(catalog_config, parent_collection, collection_config, True)
|
|
422
422
|
add_process_info(parent_collection, catalog_config, collection_config)
|
|
423
423
|
update_extents_from_collection_children(parent_collection)
|
|
424
|
+
add_base_overlay_info(parent_collection, catalog_config, collection_config)
|
|
424
425
|
# Fill summaries for locations
|
|
425
426
|
parent_collection.summaries = Summaries(
|
|
426
427
|
{
|
|
@@ -468,6 +468,11 @@ def extract_extent_from_geoparquet(table) -> tuple[TemporalExtent, SpatialExtent
|
|
|
468
468
|
# fallback to start_datetime
|
|
469
469
|
min_datetime = pc.min(table["start_datetime"]).as_py()
|
|
470
470
|
max_datetime = pc.max(table["start_datetime"]).as_py()
|
|
471
|
+
# Making sure time extent is timezone aware
|
|
472
|
+
if min_datetime and min_datetime.tzinfo is None:
|
|
473
|
+
min_datetime = min_datetime.replace(tzinfo=timezone.utc)
|
|
474
|
+
if max_datetime and max_datetime.tzinfo is None:
|
|
475
|
+
max_datetime = max_datetime.replace(tzinfo=timezone.utc)
|
|
471
476
|
temporal = TemporalExtent([min_datetime, max_datetime])
|
|
472
477
|
geoms = [wkb.loads(g.as_py()) for g in table["geometry"] if g is not None]
|
|
473
478
|
bbox = sgeom.MultiPolygon(geoms).bounds
|
|
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
|
|
File without changes
|
|
File without changes
|
{eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/tests/testing-collections/test_CROPOMAT1.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/tests/testing-collections/test_geodb_locations.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/tests/testing-collections/test_projection.json
RENAMED
|
File without changes
|
{eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/tests/testing-collections/test_see_solar_energy.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/tests/testing-collections/test_sh_wms_locations.json
RENAMED
|
File without changes
|
{eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/tests/testing-collections/test_tif_demo_1.yaml
RENAMED
|
File without changes
|
{eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/tests/testing-collections/test_tif_demo_1_json.json
RENAMED
|
File without changes
|
{eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/tests/testing-collections/test_tif_demo_2.yaml
RENAMED
|
File without changes
|
|
File without changes
|
{eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/tests/testing-collections/test_veda_tiles.json
RENAMED
|
File without changes
|
{eodash_catalog-0.3.8 → eodash_catalog-0.3.10}/tests/testing-collections/test_wms_no_time.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|