"In this Use Case you will learn how to access a data file from DKRZ's CMIP6 archive and calculate the annual summer of summer days for a particular location.\\\n",
"In this Use Case you will learn how to access a data file from DKRZ's CMIP6 archive and count the annual number of summer days for a particular location.\\\n",
"\\\n",
"You will be using:\n",
"- [Intake](https://github.com/intake/intake) for finding the data the data\n",
...
...
@@ -26,22 +26,14 @@
"outputs": [],
"source": [
"# get formating done automatically according to style `black`\n",
"%load_ext lab_black"
"#%load_ext lab_black"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [
{
"data": {
"text/html": []
},
"metadata": {},
"output_type": "display_data"
}
],
"outputs": [],
"source": [
"import intake\n",
"import requests\n",
...
...
@@ -61,43 +53,16 @@
"metadata": {},
"source": [
"## Choose Location and Year\n",
"If ambiguous the more likely location will be chosen"
"If ambiguous the more likely location will be chosen\n",
# Count Annual Summer Days for a particular Location
%% Cell type:markdown id: tags:
In this Use Case you will learn how to access a data file from DKRZ's CMIP6 archive and calculate the annual summer of summer days for a particular location.\
In this Use Case you will learn how to access a data file from DKRZ's CMIP6 archive and count the annual number of summer days for a particular location.\
\
You will be using:
-[Intake](https://github.com/intake/intake) for finding the data the data
-[Xarray](http://xarray.pydata.org/en/stable/) for loading and processing the data
-[hvPlot](https://hvplot.holoviz.org/index.html) for visualizing the data
%% Cell type:code id: tags:
``` python
# get formating done automatically according to style `black`
%load_extlab_black
#%load_ext lab_black
```
%% Cell type:code id: tags:
``` python
importintake
importrequests
importfolium
importxarrayasxr
importmatplotlib
fromIPython.displayimportdisplay
fromipywidgetsimportwidgets
fromgeopy.geocodersimportNominatim
importnumpyasnp
importpandasaspd
importhvplot.pandas
```
%% Output
%% Cell type:markdown id: tags:
## Choose Location and Year
If ambiguous the more likely location will be chosen
Let's see what is in the intake catalog. The underlying data base is given as a panda dataframe which we can access with 'col.df'. col.df.head() shows us the first rows of the table: