Skip to content

Commit

Permalink
ADD: wradlib notebooks (#76)
Browse files Browse the repository at this point in the history
* ADD: wradlib notebook clutter and beamblockage, add hvplot/datashader for interactive plotting

* update wradlib notebook
* add bottleneck
* add rioxarray
* use bucket data
* try to minimize image size
* tag docker image
* use gpm-api>=0.2.15 within environment.yml, remove gpm-api install from appendix.txt
  • Loading branch information
kmuehlbauer authored Aug 18, 2024
1 parent 4eeeef2 commit fc3c533
Show file tree
Hide file tree
Showing 7 changed files with 914 additions and 4 deletions.
17 changes: 16 additions & 1 deletion .github/workflows/build-book-pullrequest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ permissions:
contents: read

env:
DOCKER_TAG: pr_77
DOCKER_TAG: pr_76

jobs:
build-book:
Expand All @@ -55,6 +55,21 @@ jobs:
# echo "binder-folder NOT changed - NO rebuild"
# fi
rm binder/Dockerfile
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false

# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
android: true
dotnet: true
haskell: true
large-packages: false
docker-images: false
swap-storage: false
- name: update jupyter dependencies with repo2docker
uses: jupyterhub/repo2docker-action@master
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-book.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ on:
type: string # had a lot of trouble with boolean types, see https://github.com/actions/runner/issues/1483

env:
DOCKER_TAG: pr_77
DOCKER_TAG: pr_76

jobs:
build-container:
Expand Down
2 changes: 1 addition & 1 deletion binder/Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM ghcr.io/openradar/erad2024:pr_77
FROM ghcr.io/openradar/erad2024:pr_76
1 change: 0 additions & 1 deletion binder/appendix.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,5 @@ RUN CONDA_DIR=/srv/conda && \
echo "export PROJ_NETWORK=$PROJ_NETWORK" >> ~/.profile && \
${CONDA_PREFIX}/bin/bash -l $BALTRAD_INSTALL_ROOT/install/baltrad/install_baltrad.sh && \
rm -rf $BALTRAD_INSTALL_ROOT/install && \
${MAMBA_EXE} install -y -n $RADARENV gpm-api --no-update-deps && \
${MAMBA_EXE} clean --all -f -y && \
cp binder/kernel.json $CONDA_PREFIX/share/jupyter/kernels/python3/.
7 changes: 7 additions & 0 deletions binder/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dependencies:
- sphinx-pythia-theme
- arm_pyart>=1.18.7
- cartopy
- gpm-api>=0.2.15
- matplotlib
- numpy
- pyrad_arm
Expand Down Expand Up @@ -44,3 +45,9 @@ dependencies:
- jaxopt
- tensorflow>=2.6
- tensorflow-probability>=0.24
# interactive plotting
- hvplot
- datashader
# needed for wradlib
- bottleneck
- rioxarray
1 change: 1 addition & 0 deletions myst.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ project:
- title: Py-ART and wradlib
children:
- file: notebooks/xradar-pyart/pyart-basics.ipynb
- file: notebooks/wradlib/wradlib_clutter_beamblockage.ipynb
- title: BALTRAD
children:
- pattern: notebooks/baltrad/baltrad_short_course/*.ipynb
Expand Down
Loading

0 comments on commit fc3c533

Please sign in to comment.