diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000000000000000000000000000000000000..30f0a267ee61099b8d8bad6a4421cbaa075734e0 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,4 @@ +.gitlab-ci.yml +Dockerfile +isimip3b +isimip3b.zip \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..f670e4cfb93b7fc386f153b49211a37ea14b629e --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +isimip3b.zip +isimip3b \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 49332d45f9b13a946c76607ee26fdc505666036d..a286bfd6d9f67ea525d1bc041208df6a3effa2de 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,6 @@ -FROM jupyter/scipy-notebook:ubuntu-22.04 +FROM jupyter/datascience-notebook:ubuntu-22.04 RUN wget -O isimip3b.zip https://zenodo.org/api/records/10256871/files/isimip3b.zip/content RUN unzip isimip3b.zip && rm isimip3b.zip +COPY . $HOME \ No newline at end of file diff --git a/exercises/exercise1.ipynb b/exercises/exercise1.ipynb new file mode 100644 index 0000000000000000000000000000000000000000..2967aa58a288b261f46bdfe251f4baa5d1933a4e --- /dev/null +++ b/exercises/exercise1.ipynb @@ -0,0 +1,60 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "! pip install xarray dask netCDF4 " + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "import xarray as xr" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "ds = xr.open_dataset(\"../isimip3b/output/vic-wur/gfdl-esm4/historical/vic-wur_gfdl-esm4_w5e5_historical_nat_default_dis_global_daily_2001_2010.nc\")\n", + "ds" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "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.6" + } + }, + "nbformat": 4, + "nbformat_minor": 2 +}