Skip to content

Commit

Permalink
add xyz link to xcube datasets (#127)
Browse files Browse the repository at this point in the history
* add xyz link to xcube datasets

* trigger pipeline
  • Loading branch information
lubojr authored Apr 12, 2024
1 parent 7e7aa08 commit deafa95
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion generators/generate_indicators.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,6 @@ def handle_WMS_endpoint(config, endpoint, data, catalog, wmts=False):
collection.extent.spatial = SpatialExtent([
endpoint["OverwriteBBox"],
])


add_visualization_info(collection, data, endpoint)
add_collection_information(config, collection, data)
Expand Down Expand Up @@ -954,6 +953,8 @@ def add_visualization_info(stac_object, data, endpoint, file_url=None, time=None
vmax,
cbar,
)
if time is not None:
target_url = target_url.replace('{time}', time)
stac_object.add_link(
Link(
rel="xyz",
Expand Down Expand Up @@ -1190,6 +1191,7 @@ def process_STAC_Datacube_Endpoint(config, endpoint, data, catalog):
else:
link.extra_fields["start_datetime"] = item.properties["start_datetime"]
link.extra_fields["end_datetime"] = item.properties["end_datetime"]
add_visualization_info(item, data, endpoint, time=t)
unit = variables.get(endpoint.get("Variable")).get('unit')
if unit and "yAxis" not in data:
data["yAxis"] = unit
Expand Down

0 comments on commit deafa95

Please sign in to comment.