diff --git a/docs/source/databrowser/APIRef.rst b/docs/source/databrowser/APIRef.rst index ab426dd..21f0445 100644 --- a/docs/source/databrowser/APIRef.rst +++ b/docs/source/databrowser/APIRef.rst @@ -544,7 +544,7 @@ Searching for metadata .. _databrowser-api-stac: Generating a STAC collection ---------------------------- +----------------------------- .. http:get:: /api/freva-nextgen/databrowser/stac-collection/(str:flavour)/(str:uniq_key) @@ -587,7 +587,7 @@ Generating a STAC collection :resheader Content-Type: ``application/json``: creation status and collection link Example Request - ~~~~~~~~~~~~~~ + ~~~~~~~~~~~~~~~~ Here's an example of how to use this endpoint with additional parameters. In this example, we want to create a STAC collection that follows the @@ -600,7 +600,7 @@ Generating a STAC collection Host: www.freva.dkrz.de Example Response - ~~~~~~~~~~~~~~~ + ~~~~~~~~~~~~~~~~~ .. sourcecode:: http diff --git a/docs/source/databrowser/cli.rst b/docs/source/databrowser/cli.rst index 3ffc63b..daa1353 100644 --- a/docs/source/databrowser/cli.rst +++ b/docs/source/databrowser/cli.rst @@ -240,7 +240,7 @@ the data via zarr. Creating STAC Collections ------------------------- +-------------------------- The ``stac-collection`` sub command allows you to create a dynamic `STAC (SpatioTemporal Asset Catalog) collection _ ` from the current search. This can be useful for sharing standardized geospatial data catalogs and enabling interoperability between different data systems. @@ -250,12 +250,12 @@ data catalogs and enabling interoperability between different data systems. freva-client databrowser stac-collection --help .. execute_code:: - :hide_code: + :hide_code: - from subprocess import run, PIPE + from subprocess import run, PIPE - res = run(["freva-client", "databrowser", "stac-collection", "--help"], check=True, stdout=PIPE, stderr=PIPE) - print(res.stdout.decode()) + res = run(["freva-client", "databrowser", "stac-collection", "--help"], check=True, stdout=PIPE, stderr=PIPE) + print(res.stdout.decode()) The STAC collection provides multiple ways to access and interact with the data: - Access your climate data through the intake-esm data catalog specification diff --git a/freva-rest/src/freva_rest/databrowser_api/mock/files.json b/freva-rest/src/freva_rest/databrowser_api/mock/files.json index 1c37671..e3a9770 100644 --- a/freva-rest/src/freva_rest/databrowser_api/mock/files.json +++ b/freva-rest/src/freva_rest/databrowser_api/mock/files.json @@ -19,7 +19,7 @@ "1min" ], "bbox": [ - "ENVELOPE(-180.00, -90.00)" + "ENVELOPE(-180.00, 180.00, 90.00,-90.00)" ], "realm": [ "atmos" diff --git a/freva-rest/src/freva_rest/databrowser_api/mock/latest.json b/freva-rest/src/freva_rest/databrowser_api/mock/latest.json index 4448c58..be082e0 100644 --- a/freva-rest/src/freva_rest/databrowser_api/mock/latest.json +++ b/freva-rest/src/freva_rest/databrowser_api/mock/latest.json @@ -19,7 +19,7 @@ "1min" ], "bbox": [ - "ENVELOPE(-180.00, -90.00)" + "ENVELOPE(-180.00, 180.00, 90.00,-90.00)" ], "realm": [ "atmos" diff --git a/pyproject.toml b/pyproject.toml index 0b66a56..698e79d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -75,7 +75,7 @@ deps = -e ./freva-rest xarray commands = - pytest -vv --cov=freva-rest --cov=freva-client --cov=freva-data-portal-worker --cov-report=html:coverage_report --junitxml report.xml --cov-report xml tests + pytest -vv --cov=freva-rest --cov=freva-client --cov=freva-data-portal-worker --cov-report=html:coverage_report --junitxml report.xml --cov-report xml tests python3 -m coverage report --fail-under=98.5 --precision=2 [testenv:docs] description = "Create the documentation."