Commit 8231f240 authored by Fabian Wachsmann's avatar Fabian Wachsmann
Browse files

updated era5 tut

parent 495c4775
Pipeline #19352 passed with stage
in 29 seconds
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"cells": [ "cells": [
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 2, "execution_count": 1,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
...@@ -11,11 +11,11 @@ ...@@ -11,11 +11,11 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 3, "execution_count": 2,
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
"source": [ "source": [
"nbs = !find ./ -mindepth 2 -name \"*.ipynb\" ! -name \"*checkpoint.ipynb\" -type f " "nbs = !find ./ -mindepth 2 -name \"*.ipynb\" ! -name \"*checkpoint.ipynb\" ! -name \"*era5*\" -type f "
] ]
}, },
{ {
...@@ -84,9 +84,9 @@ ...@@ -84,9 +84,9 @@
], ],
"metadata": { "metadata": {
"kernelspec": { "kernelspec": {
"display_name": "Python 3 (ipykernel)", "display_name": "Python 3 (based on the module python3/2022.01)",
"language": "python", "language": "python",
"name": "python3" "name": "python3_2022_01"
}, },
"language_info": { "language_info": {
"codemirror_mode": { "codemirror_mode": {
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
"name": "python", "name": "python",
"nbconvert_exporter": "python", "nbconvert_exporter": "python",
"pygments_lexer": "ipython3", "pygments_lexer": "ipython3",
"version": "3.10.0" "version": "3.9.9"
} }
}, },
"nbformat": 4, "nbformat": 4,
......
%% Cell type:code id: tags: %% Cell type:code id: tags:
``` python ``` python
import json import json
``` ```
%% Cell type:code id: tags: %% Cell type:code id: tags:
``` python ``` python
nbs = !find ./ -mindepth 2 -name "*.ipynb" ! -name "*checkpoint.ipynb" -type f nbs = !find ./ -mindepth 2 -name "*.ipynb" ! -name "*checkpoint.ipynb" ! -name "*era5*" -type f
``` ```
%% Cell type:code id: tags: %% Cell type:code id: tags:
``` python ``` python
for nb in nbs: for nb in nbs:
#!jupyter nbconvert --clear-output --inplace {nb} #!jupyter nbconvert --clear-output --inplace {nb}
!jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace {nb} !jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace {nb}
with open(nb, 'r') as jsonFile: with open(nb, 'r') as jsonFile:
nbdata=json.load(jsonFile) nbdata=json.load(jsonFile)
nbdata["metadata"]["kernelspec"]["name"]="python3" nbdata["metadata"]["kernelspec"]["name"]="python3"
nbdata["metadata"]["kernelspec"]["display_name"]="python3" nbdata["metadata"]["kernelspec"]["display_name"]="python3"
with open(nb, 'w') as jsonFile: with open(nb, 'w') as jsonFile:
json.dump(nbdata, jsonFile, indent=1, ensure_ascii=False) json.dump(nbdata, jsonFile, indent=1, ensure_ascii=False)
``` ```
%%%% Output: stream %%%% Output: stream
[NbConvertApp] Converting notebook ./hands-on_excercises/1_hands-on_find_data_intake.ipynb to notebook [NbConvertApp] Converting notebook ./hands-on_excercises/1_hands-on_find_data_intake.ipynb to notebook
[NbConvertApp] Writing 4392 bytes to ./hands-on_excercises/1_hands-on_find_data_intake.ipynb [NbConvertApp] Writing 4392 bytes to ./hands-on_excercises/1_hands-on_find_data_intake.ipynb
[NbConvertApp] Converting notebook ./hands-on_excercises/2_hands-on_tropical_nights_intake_xarray_cmip6.ipynb to notebook [NbConvertApp] Converting notebook ./hands-on_excercises/2_hands-on_tropical_nights_intake_xarray_cmip6.ipynb to notebook
[NbConvertApp] Writing 4843 bytes to ./hands-on_excercises/2_hands-on_tropical_nights_intake_xarray_cmip6.ipynb [NbConvertApp] Writing 4843 bytes to ./hands-on_excercises/2_hands-on_tropical_nights_intake_xarray_cmip6.ipynb
[NbConvertApp] Converting notebook ./hands-on_solutions/2_hands-on_tropical_nights_intake_xarray_cmip6_solution.ipynb to notebook [NbConvertApp] Converting notebook ./hands-on_solutions/2_hands-on_tropical_nights_intake_xarray_cmip6_solution.ipynb to notebook
[NbConvertApp] Writing 7892 bytes to ./hands-on_solutions/2_hands-on_tropical_nights_intake_xarray_cmip6_solution.ipynb [NbConvertApp] Writing 7892 bytes to ./hands-on_solutions/2_hands-on_tropical_nights_intake_xarray_cmip6_solution.ipynb
[NbConvertApp] Converting notebook ./hands-on_solutions/1_hands-on_find_data_intake_solution.ipynb to notebook [NbConvertApp] Converting notebook ./hands-on_solutions/1_hands-on_find_data_intake_solution.ipynb to notebook
[NbConvertApp] Writing 4999 bytes to ./hands-on_solutions/1_hands-on_find_data_intake_solution.ipynb [NbConvertApp] Writing 4999 bytes to ./hands-on_solutions/1_hands-on_find_data_intake_solution.ipynb
[NbConvertApp] Converting notebook ./demo/use-case_simple-vis_xarray-matplotlib_cmip6.ipynb to notebook [NbConvertApp] Converting notebook ./demo/use-case_simple-vis_xarray-matplotlib_cmip6.ipynb to notebook
[NbConvertApp] Writing 8696 bytes to ./demo/use-case_simple-vis_xarray-matplotlib_cmip6.ipynb [NbConvertApp] Writing 8696 bytes to ./demo/use-case_simple-vis_xarray-matplotlib_cmip6.ipynb
[NbConvertApp] Converting notebook ./demo/use-case_calculate-frost-days_intake-xarray_cmip6.ipynb to notebook [NbConvertApp] Converting notebook ./demo/use-case_calculate-frost-days_intake-xarray_cmip6.ipynb to notebook
[NbConvertApp] Writing 12892 bytes to ./demo/use-case_calculate-frost-days_intake-xarray_cmip6.ipynb [NbConvertApp] Writing 12892 bytes to ./demo/use-case_calculate-frost-days_intake-xarray_cmip6.ipynb
[NbConvertApp] Converting notebook ./demo/dkrz-data-pool-cmip6.ipynb to notebook [NbConvertApp] Converting notebook ./demo/dkrz-data-pool-cmip6.ipynb to notebook
[NbConvertApp] Writing 16043 bytes to ./demo/dkrz-data-pool-cmip6.ipynb [NbConvertApp] Writing 16043 bytes to ./demo/dkrz-data-pool-cmip6.ipynb
[NbConvertApp] Converting notebook ./demo/dkrz-intake-catalog.ipynb to notebook [NbConvertApp] Converting notebook ./demo/dkrz-intake-catalog.ipynb to notebook
[NbConvertApp] Writing 12605 bytes to ./demo/dkrz-intake-catalog.ipynb [NbConvertApp] Writing 12605 bytes to ./demo/dkrz-intake-catalog.ipynb
[NbConvertApp] Converting notebook ./demo/use-case_convert-nc-to-tiff_rioxarray-xesmf_cmip.ipynb to notebook [NbConvertApp] Converting notebook ./demo/use-case_convert-nc-to-tiff_rioxarray-xesmf_cmip.ipynb to notebook
[NbConvertApp] Writing 13772 bytes to ./demo/use-case_convert-nc-to-tiff_rioxarray-xesmf_cmip.ipynb [NbConvertApp] Writing 13772 bytes to ./demo/use-case_convert-nc-to-tiff_rioxarray-xesmf_cmip.ipynb
[NbConvertApp] Converting notebook ./demo/use-case_advanced_summer_days_intake_xarray_cmip6.ipynb to notebook [NbConvertApp] Converting notebook ./demo/use-case_advanced_summer_days_intake_xarray_cmip6.ipynb to notebook
[NbConvertApp] Writing 15325 bytes to ./demo/use-case_advanced_summer_days_intake_xarray_cmip6.ipynb [NbConvertApp] Writing 15325 bytes to ./demo/use-case_advanced_summer_days_intake_xarray_cmip6.ipynb
[NbConvertApp] Converting notebook ./demo/tutorial_esmvaltool.ipynb to notebook [NbConvertApp] Converting notebook ./demo/tutorial_esmvaltool.ipynb to notebook
[NbConvertApp] Writing 5332 bytes to ./demo/tutorial_esmvaltool.ipynb [NbConvertApp] Writing 5332 bytes to ./demo/tutorial_esmvaltool.ipynb
[NbConvertApp] Converting notebook ./demo/dkrz-jupyterhub-notebook.ipynb to notebook [NbConvertApp] Converting notebook ./demo/dkrz-jupyterhub-notebook.ipynb to notebook
[NbConvertApp] Writing 5453 bytes to ./demo/dkrz-jupyterhub-notebook.ipynb [NbConvertApp] Writing 5453 bytes to ./demo/dkrz-jupyterhub-notebook.ipynb
[NbConvertApp] Converting notebook ./demo/tutorial_intake.ipynb to notebook [NbConvertApp] Converting notebook ./demo/tutorial_intake.ipynb to notebook
[NbConvertApp] Writing 18803 bytes to ./demo/tutorial_intake.ipynb [NbConvertApp] Writing 18803 bytes to ./demo/tutorial_intake.ipynb
[NbConvertApp] Converting notebook ./demo/use-case_multimodel-comparison_xarray-cdo_cmip6.ipynb to notebook [NbConvertApp] Converting notebook ./demo/use-case_multimodel-comparison_xarray-cdo_cmip6.ipynb to notebook
[NbConvertApp] Writing 17702 bytes to ./demo/use-case_multimodel-comparison_xarray-cdo_cmip6.ipynb [NbConvertApp] Writing 17702 bytes to ./demo/use-case_multimodel-comparison_xarray-cdo_cmip6.ipynb
[NbConvertApp] Converting notebook ./demo/use-case_plot-unstructured_psyplot_cmip6.ipynb to notebook [NbConvertApp] Converting notebook ./demo/use-case_plot-unstructured_psyplot_cmip6.ipynb to notebook
[NbConvertApp] Writing 9342 bytes to ./demo/use-case_plot-unstructured_psyplot_cmip6.ipynb [NbConvertApp] Writing 9342 bytes to ./demo/use-case_plot-unstructured_psyplot_cmip6.ipynb
[NbConvertApp] Converting notebook ./demo/use-case_global-yearly-mean-anomaly_xarray-hvplot_cmip6.ipynb to notebook [NbConvertApp] Converting notebook ./demo/use-case_global-yearly-mean-anomaly_xarray-hvplot_cmip6.ipynb to notebook
[NbConvertApp] Writing 14045 bytes to ./demo/use-case_global-yearly-mean-anomaly_xarray-hvplot_cmip6.ipynb [NbConvertApp] Writing 14045 bytes to ./demo/use-case_global-yearly-mean-anomaly_xarray-hvplot_cmip6.ipynb
%% Cell type:code id: tags: %% Cell type:code id: tags:
``` python ``` python
``` ```
......
This diff is collapsed.
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment