Skip to content

Commit

Permalink
Normans review addressed
Browse files Browse the repository at this point in the history
  • Loading branch information
konstntokas committed Jul 10, 2024
1 parent c806c6d commit be95304
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 29 deletions.
10 changes: 5 additions & 5 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
* The `xcube.core.store.DataDescriptor` class now supports specifying time ranges
using both `datetime.date` and `datetime.datetime` objects. Previously,
only `datetime.date` objects were supported.
* The xcube server STAC publication has been adjusted so that the data store
parameters and data ID, which are needed to open the data,
are now included with the asset; furthermore, a second assert called
`analytic_multires` will be published referring to the multi-resolution data format
levels (#1020).
* The xcube server STAC API has been adjusted so that the data store
parameters and data ID, which are needed to open the data referred to by a STAC item,
are now included with the item's `analytic` asset.
Furthermore, a second assert called `analytic_multires` will be published
referring to the multi-resolution data format levels (#1020).

## Changes in 1.6.0

Expand Down
12 changes: 6 additions & 6 deletions test/webapi/ows/stac/demo-collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
],
"type": "application/zarr",
"href": "http://localhost:8080/s3/datasets/demo.zarr",
"xcube:store_kwargs": {
"data_store_id": "s3",
"xcube:data_store_id": "s3",
"xcube:data_store_params": {
"root": "datasets",
"storage_options": {
"anon": true,
Expand All @@ -17,7 +17,7 @@
}
}
},
"xcube:open_kwargs": {
"xcube:open_data_params": {
"data_id": "demo.zarr"
},
"xcube:analytic": {
Expand Down Expand Up @@ -70,8 +70,8 @@
],
"type": "application/zarr",
"href": "http://localhost:8080/s3/pyramids/demo.levels",
"xcube:store_kwargs": {
"data_store_id": "s3",
"xcube:data_store_id": "s3",
"xcube:data_store_params": {
"root": "pyramids",
"storage_options": {
"anon": true,
Expand All @@ -80,7 +80,7 @@
}
}
},
"xcube:open_kwargs": {
"xcube:open_data_params": {
"data_id": "demo.levels"
},
"xcube:analytic_multires": {
Expand Down
12 changes: 6 additions & 6 deletions test/webapi/ows/stac/stac-datacubes-item.json
Original file line number Diff line number Diff line change
Expand Up @@ -970,8 +970,8 @@
],
"type": "application/zarr",
"href": "http://localhost:8080/s3/datasets/demo-1w.zarr",
"xcube:store_kwargs": {
"data_store_id": "s3",
"xcube:data_store_id": "s3",
"xcube:data_store_params": {
"root": "datasets",
"storage_options": {
"anon": true,
Expand All @@ -980,7 +980,7 @@
}
}
},
"xcube:open_kwargs": {
"xcube:open_data_params": {
"data_id": "demo-1w.zarr"
},
"xcube:analytic": {
Expand Down Expand Up @@ -1073,8 +1073,8 @@
],
"type": "application/zarr",
"href": "http://localhost:8080/s3/pyramids/demo-1w.levels",
"xcube:store_kwargs": {
"data_store_id": "s3",
"xcube:data_store_id": "s3",
"xcube:data_store_params": {
"root": "pyramids",
"storage_options": {
"anon": true,
Expand All @@ -1083,7 +1083,7 @@
}
}
},
"xcube:open_kwargs": {
"xcube:open_data_params": {
"data_id": "demo-1w.levels"
},
"xcube:analytic_multires": {
Expand Down
12 changes: 6 additions & 6 deletions test/webapi/ows/stac/stac-single-item.json
Original file line number Diff line number Diff line change
Expand Up @@ -970,8 +970,8 @@
],
"type": "application/zarr",
"href": "http://localhost:8080/s3/datasets/demo-1w.zarr",
"xcube:store_kwargs": {
"data_store_id": "s3",
"xcube:data_store_id": "s3",
"xcube:data_store_params": {
"root": "datasets",
"storage_options": {
"anon": true,
Expand All @@ -980,7 +980,7 @@
}
}
},
"xcube:open_kwargs": {
"xcube:open_data_params": {
"data_id": "demo-1w.zarr"
},
"xcube:analytic": {
Expand Down Expand Up @@ -1073,8 +1073,8 @@
],
"type": "application/zarr",
"href": "http://localhost:8080/s3/pyramids/demo-1w.levels",
"xcube:store_kwargs": {
"data_store_id": "s3",
"xcube:data_store_id": "s3",
"xcube:data_store_params": {
"root": "pyramids",
"storage_options": {
"anon": true,
Expand All @@ -1083,7 +1083,7 @@
}
}
},
"xcube:open_kwargs": {
"xcube:open_data_params": {
"data_id": "demo-1w.levels"
},
"xcube:analytic_multires": {
Expand Down
12 changes: 6 additions & 6 deletions xcube/webapi/ows/stac/controllers.py
Original file line number Diff line number Diff line change
Expand Up @@ -797,15 +797,15 @@ def _get_assets(ctx: DatasetsContext, base_url: str, dataset_id: str):
"roles": ["data"],
"type": "application/zarr",
"href": f"{base_url}/s3/datasets/{dataset_id}.zarr",
"xcube:store_kwargs": {
"data_store_id": "s3",
"xcube:data_store_id": "s3",
"xcube:data_store_params": {
"root": "datasets",
"storage_options": {
"anon": True,
"client_kwargs": {"endpoint_url": "http://localhost:8080/s3"},
},
},
"xcube:open_kwargs": {"data_id": f"{dataset_id}.zarr"},
"xcube:open_data_params": {"data_id": f"{dataset_id}.zarr"},
"xcube:analytic": {
v["name"]: {
"title": f"{v['name']} data access",
Expand All @@ -821,15 +821,15 @@ def _get_assets(ctx: DatasetsContext, base_url: str, dataset_id: str):
"roles": ["data"],
"type": "application/zarr",
"href": f"{base_url}/s3/pyramids/{dataset_id}.levels",
"xcube:store_kwargs": {
"data_store_id": "s3",
"xcube:data_store_id": "s3",
"xcube:data_store_params": {
"root": "pyramids",
"storage_options": {
"anon": True,
"client_kwargs": {"endpoint_url": "http://localhost:8080/s3"},
},
},
"xcube:open_kwargs": {"data_id": f"{dataset_id}.levels"},
"xcube:open_data_params": {"data_id": f"{dataset_id}.levels"},
"xcube:analytic_multires": {
v["name"]: {
"title": f"{v['name']} data access",
Expand Down

0 comments on commit be95304

Please sign in to comment.