Skip to content

Commit

Permalink
Merge pull request #157 from roocs/add-nb-atlas-v1
Browse files Browse the repository at this point in the history
Add nb atlas v1
  • Loading branch information
cehbrecht authored Dec 18, 2023
2 parents 1fe01e9 + d3598f0 commit 805dfa4
Show file tree
Hide file tree
Showing 3 changed files with 131 additions and 42 deletions.
6 changes: 3 additions & 3 deletions notebooks/demo/demo-intake-catalog.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3315,7 +3315,7 @@
"path 412\n",
"size 0\n",
"project 8\n",
"domain 3\n",
"domain 4\n",
"experiment 8\n",
"time_frequency 2\n",
"variable 30\n",
Expand Down Expand Up @@ -3373,7 +3373,7 @@
{
"data": {
"text/plain": [
"['Global', 'Global-mosaic', 'EUR-11']"
"['Global', 'Global (mosaic)', 'Europe (EURO-CORDEX)', 'Europe']"
]
},
"execution_count": 22,
Expand Down Expand Up @@ -3502,7 +3502,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.0"
"version": "3.11.3"
}
},
"nbformat": 4,
Expand Down
104 changes: 104 additions & 0 deletions notebooks/demo/demo-rooki-c3s-cico-atlas.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Run workflow with c3s-cica-atlas data\n",
"\n",
"**Rooki** calls climate data operations on the **rook** processing service."
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"os.environ['ROOK_URL'] = 'http://rook.dkrz.de/wps'\n",
"\n",
"from rooki import rooki\n",
"from rooki import operators as ops"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## workflow: subset c3s cica atlas v1 cmip5\n"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"True"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"ds = ops.Input(\n",
" 'ds', ['c3s-cica-atlas.tx.ERA5.mon']\n",
")\n",
"\n",
"wf = ops.Subset(\n",
" ds, \n",
" # time=\"2000/2000\",\n",
")\n",
"\n",
"resp = wf.orchestrate()\n",
"resp.ok"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"['https://data.mips.copernicus-climate.eu/thredds/fileServer/esg_c3s-cica-atlas/ERA5/tx_ERA5_mon_194001-202212.nc']"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"resp.download_urls()"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.3"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
Loading

0 comments on commit 805dfa4

Please sign in to comment.