{
"cells": [
{
"cell_type": "markdown",
"id": "d7a787aa-75f7-459d-84ee-3e1f8a89b54a",
"metadata": {
"tags": []
},
"source": [
""
]
},
{
"cell_type": "markdown",
"id": "67a97ddd-9faf-4e24-846d-5ae5677f843b",
"metadata": {},
"source": [
"# Complex Searching with `intake` and analysing employing `xarray` \n",
"\n",
"## Overview\n",
"\n",
"This tutorial we will present access multiple historical (as an example here) data available and analyze using `intake`. Put them in a dictionary format employing `xarray` and plotting simple area average time series over a specific region. \n",
"\n",
"## Imports"
]
},
{
"cell_type": "code",
"execution_count": 15,
"id": "e816d66e-cf10-4b3e-bbf4-20d2d1e6303b",
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"import warnings\n",
"import intake\n",
"from distributed import Client\n",
"from matplotlib import pyplot as plt\n",
"import numpy as np\n",
"import pandas as pd\n",
"import xarray as xr\n",
"import dask\n",
"xr.set_options(display_style='html')\n",
"warnings.filterwarnings(\"ignore\")"
]
},
{
"cell_type": "code",
"execution_count": 16,
"id": "3b313881-d31b-4b9a-b4fe-e6ec0e1a2a42",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"
pangeo-cmip6 catalog with 7674 dataset(s) from 514818 asset(s):
\n", " | unique | \n", "
---|---|
activity_id | \n", "18 | \n", "
institution_id | \n", "36 | \n", "
source_id | \n", "88 | \n", "
experiment_id | \n", "170 | \n", "
member_id | \n", "657 | \n", "
table_id | \n", "37 | \n", "
variable_id | \n", "700 | \n", "
grid_label | \n", "10 | \n", "
zstore | \n", "514818 | \n", "
dcpp_init_year | \n", "60 | \n", "
version | \n", "736 | \n", "
derived_variable_id | \n", "0 | \n", "
\n", " | activity_id | \n", "institution_id | \n", "source_id | \n", "experiment_id | \n", "member_id | \n", "table_id | \n", "variable_id | \n", "grid_label | \n", "zstore | \n", "dcpp_init_year | \n", "version | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "CMIP | \n", "NCAR | \n", "CESM2 | \n", "historical | \n", "r1i1p1f1 | \n", "Amon | \n", "tas | \n", "gn | \n", "gs://cmip6/CMIP6/CMIP/NCAR/CESM2/historical/r1... | \n", "NaN | \n", "20190308 | \n", "
1 | \n", "CMIP | \n", "CCCma | \n", "CanESM5 | \n", "historical | \n", "r1i1p1f1 | \n", "Amon | \n", "tas | \n", "gn | \n", "gs://cmip6/CMIP6/CMIP/CCCma/CanESM5/historical... | \n", "NaN | \n", "20190429 | \n", "
2 | \n", "CMIP | \n", "NCAR | \n", "CESM2-FV2 | \n", "historical | \n", "r1i1p1f1 | \n", "Amon | \n", "tas | \n", "gn | \n", "gs://cmip6/CMIP6/CMIP/NCAR/CESM2-FV2/historica... | \n", "NaN | \n", "20191120 | \n", "
3 | \n", "CMIP | \n", "CMCC | \n", "CMCC-ESM2 | \n", "historical | \n", "r1i1p1f1 | \n", "Amon | \n", "tas | \n", "gn | \n", "gs://cmip6/CMIP6/CMIP/CMCC/CMCC-ESM2/historica... | \n", "NaN | \n", "20210114 | \n", "