Skip to content
Snippets Groups Projects
Commit 16f80ad2 authored by Fabian Wachsmann's avatar Fabian Wachsmann
Browse files

Resolve "Calculate Climate Extremes Indices according to the ETCCDI standard with CDOs"

parent 1370da3f
No related branches found
No related tags found
1 merge request!19Resolve "Calculate Climate Extremes Indices according to the ETCCDI standard with CDOs"
...@@ -20,6 +20,7 @@ build: ...@@ -20,6 +20,7 @@ build:
script: script:
#- ls /pool/data #- ls /pool/data
- cd docs - cd docs
- chmod 755 ./leave_required_nbooks.sh && ./leave_required_nbooks.sh
- make html - make html
after_script: after_script:
#- conda deactivate #- conda deactivate
...@@ -42,8 +43,11 @@ imageupdate: ...@@ -42,8 +43,11 @@ imageupdate:
script: script:
- docker build --tag gitlabci_notebook . - docker build --tag gitlabci_notebook .
only: only:
refs:
- branches
changes: changes:
- Dockerfile - Dockerfile
- environment.yaml
pages: pages:
stage: deploy stage: deploy
......
...@@ -8,6 +8,7 @@ RUN micromamba install -y -n base -f /tmp/env.yaml && \ ...@@ -8,6 +8,7 @@ RUN micromamba install -y -n base -f /tmp/env.yaml && \
ENV PATH=$PATH:/micromamba/pcondabin:/micromamba/bin ENV PATH=$PATH:/micromamba/pcondabin:/micromamba/bin
USER root USER root
RUN apt-get update && apt-get install build-essential -y RUN apt-get update && apt-get install build-essential -y
RUN apt-get install git -y
RUN python -m ipykernel install --name python3 --display-name "python3" --user RUN python -m ipykernel install --name python3 --display-name "python3" --user
......
#!/bin/sh
if [ "${CI_COMMIT_BRANCH}" != "master" ]; then
a=$(git diff --name-only $CI_COMMIT_BEFORE_SHA $CI_COMMIT_SHA | grep ipynb | rev | cut -d '/' -f -1 | rev | tr '\n' ' ')
rm source/*.ipynb
for file in $a;
do
echo $file
git checkout source/$file ;
done
fi
../../notebooks/demo/use-case_climate-extremes-indices_cdo.ipynb
\ No newline at end of file
...@@ -16,3 +16,4 @@ Use-cases ...@@ -16,3 +16,4 @@ Use-cases
use-case_simple-vis_xarray-matplotlib_cmip6.ipynb use-case_simple-vis_xarray-matplotlib_cmip6.ipynb
use-case_global-yearly-mean-anomaly_xarray-hvplot_cmip6.ipynb use-case_global-yearly-mean-anomaly_xarray-hvplot_cmip6.ipynb
use-case_convert-nc-to-tiff_rioxarray-xesmf_cmip.ipynb use-case_convert-nc-to-tiff_rioxarray-xesmf_cmip.ipynb
use-case_climate-extremes-indices_cdo.ipynb
...@@ -33,9 +33,12 @@ dependencies: ...@@ -33,9 +33,12 @@ dependencies:
- esmvalcore - esmvalcore
- requests - requests
- aiohttp - aiohttp
- wget
#psyplot #psyplot
- psy-maps - psy-maps
- psyplot - psyplot
- cfchecker
- pyessv
# #
#for psyplot on centos: #for psyplot on centos:
#sudo ln -s /usr/lib64/libc.so.6 /usr/lib64/libc.musl-x86_64.so.1 #sudo ln -s /usr/lib64/libc.so.6 /usr/lib64/libc.musl-x86_64.so.1
...@@ -46,3 +49,6 @@ dependencies: ...@@ -46,3 +49,6 @@ dependencies:
- pip: - pip:
- sphinx-book-theme - sphinx-book-theme
- pangeo-xesmf #for raster data - pangeo-xesmf #for raster data
- git+https://github.com/cedadev/cc-yaml@master
- git+https://github.com/cedadev/compliance-check-lib@master
- git+https://github.com/AtMoDat/atmodat_data_checker@master
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment