{ "cells": [ { "cell_type": "markdown", "id": "5fcc89b4", "metadata": {}, "source": [ "# STAC connect to ClimateDT weather stations" ] }, { "cell_type": "code", "execution_count": 1, "id": "fcad84ad", "metadata": {}, "outputs": [], "source": [ "from odc import stac as odc_stac\n", "from pystac_client import Client\n", "import xarray as xr\n", "import xarray as xr\n", "import numpy as np" ] }, { "cell_type": "markdown", "id": "b921f772", "metadata": {}, "source": [ "### Connect to the eodc stac with pystac CLient" ] }, { "cell_type": "code", "execution_count": 2, "id": "c15f10f4", "metadata": {}, "outputs": [], "source": [ "eodc_catalog = Client.open(\n", " \"https://stac.eodc.eu/api/v1\",\n", ")\n", "\n", "collection = \"climatedt\"" ] }, { "cell_type": "code", "execution_count": 3, "id": "445bee77", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "IFS-NEMO-ScenarioMIP-snowDepth\n", "IFS-NEMO-ScenarioMIP\n", "IFS-FESOM-story-nudging-Tplus2\n", "IFS-FESOM-story-nudging-hist\n", "IFS-FESOM-story-nudging-cont\n", "IFS-NEMO-HighResMIP\n", "IFS-NEMO-CMIP6\n" ] } ], "source": [ "search = eodc_catalog.search(collections=[collection])\n", "for item in search.items():\n", " print(item.id)" ] }, { "cell_type": "code", "execution_count": 4, "id": "afa5ab3f", "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "\n", "\n", "