eodash_catalog 0.3.9__py3-none-any.whl → 0.3.11__py3-none-any.whl
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/__about__.py +1 -1
- eodash_catalog/endpoints.py +5 -1
- eodash_catalog/stac_handling.py +2 -2
- eodash_catalog/utils.py +5 -0
- {eodash_catalog-0.3.9.dist-info → eodash_catalog-0.3.11.dist-info}/METADATA +1 -1
- eodash_catalog-0.3.11.dist-info/RECORD +14 -0
- eodash_catalog-0.3.9.dist-info/RECORD +0 -14
- {eodash_catalog-0.3.9.dist-info → eodash_catalog-0.3.11.dist-info}/WHEEL +0 -0
- {eodash_catalog-0.3.9.dist-info → eodash_catalog-0.3.11.dist-info}/entry_points.txt +0 -0
- {eodash_catalog-0.3.9.dist-info → eodash_catalog-0.3.11.dist-info}/licenses/LICENSE.txt +0 -0
eodash_catalog/__about__.py
CHANGED
eodash_catalog/endpoints.py
CHANGED
|
@@ -1060,6 +1060,10 @@ def generate_veda_tiles_link(endpoint_config: dict, item: str | None) -> str:
|
|
|
1060
1060
|
color_formula = ""
|
|
1061
1061
|
if endpoint_config.get("ColorFormula"):
|
|
1062
1062
|
color_formula = "&color_formula={}".format(endpoint_config["ColorFormula"])
|
|
1063
|
+
rescale = ""
|
|
1064
|
+
if endpoint_config.get("Rescale"):
|
|
1065
|
+
for rescale in endpoint_config["Rescale"]:
|
|
1066
|
+
rescale += f"&rescale={rescale}"
|
|
1063
1067
|
no_data = ""
|
|
1064
1068
|
if endpoint_config.get("NoData"):
|
|
1065
1069
|
no_data = "&no_data={}".format(endpoint_config["NoData"])
|
|
@@ -1067,7 +1071,7 @@ def generate_veda_tiles_link(endpoint_config: dict, item: str | None) -> str:
|
|
|
1067
1071
|
target_url_base = endpoint_config["EndPoint"].replace("/stac/", "")
|
|
1068
1072
|
target_url = (
|
|
1069
1073
|
f"{target_url_base}/raster/collections/{collection}/items/{item}"
|
|
1070
|
-
f"/tiles/WebMercatorQuad/{{z}}/{{x}}/{{y}}?{assets}{color_formula}{no_data}"
|
|
1074
|
+
f"/tiles/WebMercatorQuad/{{z}}/{{x}}/{{y}}?{assets}{color_formula}{no_data}{rescale}"
|
|
1071
1075
|
)
|
|
1072
1076
|
return target_url
|
|
1073
1077
|
|
eodash_catalog/stac_handling.py
CHANGED
|
@@ -476,7 +476,7 @@ def add_base_overlay_info(
|
|
|
476
476
|
collection: Collection, catalog_config: dict, collection_config: dict
|
|
477
477
|
) -> None:
|
|
478
478
|
# add custom baselayers specially for this indicator
|
|
479
|
-
if
|
|
479
|
+
if "BaseLayers" in collection_config:
|
|
480
480
|
for layer in collection_config["BaseLayers"]:
|
|
481
481
|
collection.add_link(create_web_map_link(layer, role="baselayer"))
|
|
482
482
|
# alternatively use default base layers defined
|
|
@@ -485,7 +485,7 @@ def add_base_overlay_info(
|
|
|
485
485
|
for layer in base_layers:
|
|
486
486
|
collection.add_link(create_web_map_link(layer, role="baselayer"))
|
|
487
487
|
# add custom overlays just for this indicator
|
|
488
|
-
if
|
|
488
|
+
if "OverlayLayers" in collection_config:
|
|
489
489
|
for layer in collection_config["OverlayLayers"]:
|
|
490
490
|
collection.add_link(create_web_map_link(layer, role="overlay"))
|
|
491
491
|
# check if default overlay layers defined
|
eodash_catalog/utils.py
CHANGED
|
@@ -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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: eodash_catalog
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.11
|
|
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
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
eodash_catalog/__about__.py,sha256=LajdP9481ZMHL4lAF0oVwWRt6euiZPZVjj7SaksVZlM,138
|
|
2
|
+
eodash_catalog/__init__.py,sha256=_W_9emPYf6FUqc0P8L2SmADx6hGSd7PlQV3yRmCk5uM,115
|
|
3
|
+
eodash_catalog/duration.py,sha256=TBG7v1lCpbYowADK5uJ2M8kPxsvQneFAFi1NIE26dy4,10754
|
|
4
|
+
eodash_catalog/endpoints.py,sha256=N6THxKvWQ6KbXsjdg_U-oFBkfCHGjRmrSTy4ECrDU2c,61845
|
|
5
|
+
eodash_catalog/generate_indicators.py,sha256=YuB_Nsmya9dXzsOdS26LyObfyjKLvfv_B2L6n43z4R4,22418
|
|
6
|
+
eodash_catalog/sh_endpoint.py,sha256=XjZsZJ5jfJZLQenSTqUhiUZ5YAu9M9nv2KL1Qv3Be-I,1219
|
|
7
|
+
eodash_catalog/stac_handling.py,sha256=4J9Fj135FziMAdzPs2OZgqoI0V7P2wSf_OuEcS66WUQ,25995
|
|
8
|
+
eodash_catalog/thumbnails.py,sha256=oNbWdRC8KTLUC4PbSMlSaiOeLXfkIpa0j-sOZdn1RGU,2262
|
|
9
|
+
eodash_catalog/utils.py,sha256=Dv28AYksex7lcRi4f4N3UP5svpv_DIHcFOTRaxd5BKM,24030
|
|
10
|
+
eodash_catalog-0.3.11.dist-info/METADATA,sha256=2_PRwUW6T7Cw5I0wS97ydj8gMwIE6FSXH4-tAcZNJPk,3020
|
|
11
|
+
eodash_catalog-0.3.11.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
12
|
+
eodash_catalog-0.3.11.dist-info/entry_points.txt,sha256=kuUQrDG1PtYd8kPjf5XM6H_NtQd9Ozwl0jjiGtAvZSM,87
|
|
13
|
+
eodash_catalog-0.3.11.dist-info/licenses/LICENSE.txt,sha256=oJCW5zQxnFD-J0hGz6Zh5Lkpdk1oAndmWhseTmV224E,1107
|
|
14
|
+
eodash_catalog-0.3.11.dist-info/RECORD,,
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
eodash_catalog/__about__.py,sha256=SttQT5UJajcKv983PRXXlp4Lr9gewdOnLLA0uTJCqhI,137
|
|
2
|
-
eodash_catalog/__init__.py,sha256=_W_9emPYf6FUqc0P8L2SmADx6hGSd7PlQV3yRmCk5uM,115
|
|
3
|
-
eodash_catalog/duration.py,sha256=TBG7v1lCpbYowADK5uJ2M8kPxsvQneFAFi1NIE26dy4,10754
|
|
4
|
-
eodash_catalog/endpoints.py,sha256=w1h-1FkgQxH7Sdgf2T1HP5GYbeCNnbSg3bVl9LcLJJY,61684
|
|
5
|
-
eodash_catalog/generate_indicators.py,sha256=YuB_Nsmya9dXzsOdS26LyObfyjKLvfv_B2L6n43z4R4,22418
|
|
6
|
-
eodash_catalog/sh_endpoint.py,sha256=XjZsZJ5jfJZLQenSTqUhiUZ5YAu9M9nv2KL1Qv3Be-I,1219
|
|
7
|
-
eodash_catalog/stac_handling.py,sha256=ZBk4AXtBNZ0Trr_oszhFGo8ypbGu3ox3KqfIVpc7ZuQ,25999
|
|
8
|
-
eodash_catalog/thumbnails.py,sha256=oNbWdRC8KTLUC4PbSMlSaiOeLXfkIpa0j-sOZdn1RGU,2262
|
|
9
|
-
eodash_catalog/utils.py,sha256=X40eQNRq8kh7ZATofX12V9EtUpMRdTTfkozBdqkKMJU,23746
|
|
10
|
-
eodash_catalog-0.3.9.dist-info/METADATA,sha256=WKe1AUTdUnNvxDtHduUhiTA2k7XHmKjNVu18-Apt8Dg,3019
|
|
11
|
-
eodash_catalog-0.3.9.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
12
|
-
eodash_catalog-0.3.9.dist-info/entry_points.txt,sha256=kuUQrDG1PtYd8kPjf5XM6H_NtQd9Ozwl0jjiGtAvZSM,87
|
|
13
|
-
eodash_catalog-0.3.9.dist-info/licenses/LICENSE.txt,sha256=oJCW5zQxnFD-J0hGz6Zh5Lkpdk1oAndmWhseTmV224E,1107
|
|
14
|
-
eodash_catalog-0.3.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|