Skip to content

Commit 1fde54f

Browse files
Rendering at commit 70c39ec
0 parents  commit 1fde54f

File tree

83 files changed

+46286
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+46286
-0
lines changed

.dask/config.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
distributed:
2+
logging:
3+
bokeh: critical
4+
5+
dashboard:
6+
link: /user/{JUPYTERHUB_USER}/proxy/{port}/status
7+
8+
admin:
9+
tick:
10+
limit: 5s
11+
12+
kubernetes:
13+
worker-name: dask-{JUPYTERHUB_USER}-{uuid}
14+
worker-template:
15+
metadata:
16+
spec:
17+
restartPolicy: Never
18+
containers:
19+
- args:
20+
- dask-worker
21+
- --nthreads
22+
- '2'
23+
- --no-bokeh
24+
- --memory-limit
25+
- 7GB
26+
- --death-timeout
27+
- '60'
28+
image: ${JUPYTER_IMAGE_SPEC}
29+
name: dask-worker
30+
resources:
31+
limits:
32+
cpu: "1.75"
33+
memory: 7G
34+
requests:
35+
cpu: "1.75"
36+
memory: 7G

.gitignore

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Ignore everything
2+
*
3+
4+
# whitelist notebooks, png and shell
5+
!*.ipynb
6+
!*.png
7+
!*.sh
8+
9+
# whitelist scripts
10+
!scripts/
11+
!/scripts/*
12+
13+
# whitelist notebooks
14+
!notebooks/
15+
#!/notebooks/**
16+
17+
# whitelist .dask
18+
!.dask/
19+
!/.dask/*
20+
21+
# whitelist binder
22+
!binder/
23+
!/binder/*
24+
25+
# Whitelist root files
26+
!.gitignore
27+
!.travis.yml
28+
!conftest.py
29+
!README.md
30+
!LICENSE.txt
31+
!Welcome_Pangeo.md
32+
33+
# blacklist standard notebook copies
34+
*-Copy*.ipynb
35+
36+
# blacklist checkpoints
37+
*checkpoint*

.travis.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# run on container-based infrastructure
2+
sudo: false
3+
4+
language: python
5+
6+
branches:
7+
only:
8+
- master
9+
10+
env:
11+
global:
12+
# wradlib-docs-bot
13+
- secure: ZYe8DeLvuDWEOX+C0lJ+OzVBJGZMqWwxXvtiOJEZGlYxJ8k3UWpvSOJLzK/+GZ+jSdb2yhNiwPvZmYkh3laKY9+jf7Uta0Xj0badm4vomT0l1R/vkge/zmfYi93y+ty1jkjDfEemC/xsZz5YjHb4XMvgLHwRIY1eZqBsm/FPJg4y3LkAaCOllxyheS9mR9GpfF5rDj1YOGjNcVrjrRT+C3j9mRuGMyiiF4Id/EEqxl0LanNpVzV4O40ST1WHWYqusTwkd4kKi5uYnR/saSwmR2cwXZu9u52JPEnc2cHMgKMnGRiCkPgvf3zz19vDIJo0bxhmVSlQy+XuxW9+SapE6rVuVc43jceU2+JGCr+R/ndcS8wsa4Knw9F7CG1tsU2nh85qjq/p8SDorRHAoAtY7H18fq03jqPPWnXscZXTyB5CXJiNsn9YclFSQDl3DoLN3kSrs0D446vveLuotcs5PaYyBob8sKJkiRgvooAQQfxzyStmM58z8pRZNvklMClzKYp1zuISG+IIF4zEpHv8Cn9F161hbfrSvIFYKynoYx4LR0INH4a8Jhfi81ssidf5iNfleQcc9wgAf+SzdEdhdsYbfMvuuk+RtZp5F+zkBcuspTKHaXbP17YVkuqeHIrMouKYAwm+/rih6hExZPXFuuEUt5o93xo68yWDgfoI02I=
14+
- NOTEBOOKS_BUILD_DIR=$TRAVIS_BUILD_DIR
15+
16+
matrix:
17+
include:
18+
- python: 3.7
19+
sudo: required
20+
dist: xenial
21+
services: xvfb
22+
env:
23+
- WRADLIB_NOTEBOOKTEST="true"
24+
- PYTHON_VERSION="3.7"
25+
- GDAL_VERSION="2"
26+
- python: 3.7
27+
sudo: required
28+
dist: xenial
29+
services: xvfb
30+
env:
31+
- WRADLIB_NOTEBOOKTEST="true"
32+
- PYTHON_VERSION="3.7"
33+
- GDAL_VERSION="3"
34+
- python: 3.8
35+
sudo: required
36+
dist: xenial
37+
services: xvfb
38+
env:
39+
- WRADLIB_NOTEBOOKTEST="true"
40+
- PYTHON_VERSION="3.8"
41+
- GDAL_VERSION="3"
42+
- DEPLOY="true"
43+
- python: 3.9
44+
sudo: required
45+
dist: xenial
46+
services: xvfb
47+
env:
48+
- WRADLIB_NOTEBOOKTEST="true"
49+
- PYTHON_VERSION="3.9"
50+
- GDAL_VERSION="3"
51+
52+
install:
53+
- deactivate
54+
- source ci/travis/install.sh
55+
56+
script:
57+
- scripts/render_notebooks.sh;
58+
59+
after_success:
60+
- if [ "${DEPLOY}" == "true" ]; then
61+
cd $NOTEBOOKS_BUILD_DIR && scripts/push_notebooks.sh;
62+
fi;

LICENSE.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016-2020 wradlib developers
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# README #
2+
3+
## wradlib-notebooks ##
4+
5+
This repository consists of jupyter notebooks to give examples of wradlib usage and help users via tutorials.
6+
7+
- [An incomplete introduction to python](notebooks/learnpython.ipynb)
8+
- [Getting started with wradlib](notebooks/basics.ipynb)
9+
- [Data Input - Data Output](notebooks/fileio.ipynb)
10+
- [Attenuation correction](notebooks/attenuation/wradlib_attenuation.ipynb)
11+
- [Beam Blockage Calculation using DEM](notebooks/beamblockage/wradlib_beamblock.ipynb)
12+
- [Clutter and Echo Classification](notebooks/classify.ipynb)
13+
- [Georeferencing](notebooks/georeferencing.ipynb)
14+
- [Match spaceborn SR (GPM/TRRM) with ground radars GR](notebooks/match3d/wradlib_match_workflow.ipynb)
15+
- [Data Interpolation](notebooks/interpolation/wradlib_ipol_example.ipynb)
16+
- [Adjusting rainfall estimates by rain gauges](notebooks/multisensor/wradlib_adjust_example.ipynb)
17+
- [Verification for precipitation estimates](notebooks/verification/wradlib_verify_example.ipynb)
18+
- [Recipes](notebooks/recipes.ipynb)
19+
- [RADOLAN Composite](notebooks/radolan.ipynb)
20+
- [Zonal Statistics](notebooks/zonalstats/wradlib_zonalstats_classes.ipynb)

Welcome_Pangeo.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Welcome To Pangeo Binder
2+
========================
3+
4+
<img src="https://pangeo.io/_images/small_e_logo_cropped.png" width="30%" align="right">
5+
6+
This is a live session from which you can run scalable notebooks on the cloud.
7+
8+
A file browser listing example notebooks is available to the left.
9+
10+
Dask dashboard plots are available to the right.
11+
These will activate when you launch a Dask cluster and start doing work.
12+
(these cells are already written for you).
13+
14+
To get started, double click on one of the notebooks to the left,
15+
and start running through the Jupyter notebook cells.
16+
17+
18+
Where is this running?
19+
----------------------
20+
21+
This session is running on [binder.pangeo.io](https://binder.pangeo.io),
22+
a service designed and maintained by the [Pangeo community](https://pangeo.io) for scalable earth science.
23+
It is running on Google Cloud Platform using credits generously donated by Google to that Community.

appveyor.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
environment:
2+
3+
CONDA_PATH: "C:\\Miniconda37-x64"
4+
5+
matrix:
6+
- PYTHON_VERSION: "3.8"
7+
- PYTHON_VERSION: "3.9"
8+
9+
install:
10+
# clone wradlib-data
11+
- ps: |
12+
& cmd /C "git clone https://github.com/wradlib/wradlib-data.git C:\projects\wradlib\wradlib-data 2>&1"
13+
# clone wradlib
14+
- ps: |
15+
& cmd /C "git clone https://github.com/wradlib/wradlib.git C:\projects\wradlib\wradlib 2>&1"
16+
# Use the pre-installed Miniconda for the desired arch
17+
- ps: if($env:PLATFORM -eq 'x64')
18+
{ $env:CONDA_PATH="$($env:CONDA_PATH)-x64" }
19+
- ps: $env:path="$($env:CONDA_PATH);$($env:CONDA_PATH)\Scripts;$($env:CONDA_PATH)\Library\bin;C:\cygwin\bin;$($env:PATH)"
20+
# set WRADLIB_DATA
21+
- ps: $env:WRADLIB_DATA="C:\projects\wradlib\wradlib-data"
22+
23+
# Create and activate a conda environment with the wanted Python version
24+
- "conda config --add channels conda-forge"
25+
- "conda config --set channel_priority strict"
26+
- "conda install --yes mamba"
27+
- "conda config --set changeps1 no"
28+
# Install wradlib dependecies
29+
- "mamba create --yes --quiet -n wradlib-tests python=%PYTHON_VERSION% %MKL% gdal numpy scipy matplotlib-base netcdf4 h5py h5netcdf xarray dask cartopy deprecation xmltodict coverage codecov pytest pytest-cov pytest-xdist pytest-sugar notebook nbconvert psutil tqdm wetterdienst"
30+
- "activate wradlib-tests"
31+
32+
# Some checks
33+
- "python -VV"
34+
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
35+
- "conda list"
36+
37+
# build wradlib
38+
- "python -m pip install C:\\projects\\wradlib\\wradlib --no-deps --ignore-installed --no-cache-dir"
39+
40+
build: false
41+
42+
branches:
43+
only:
44+
- master
45+
46+
test_script:
47+
- "pytest -vv --durations=15 --pyargs notebooks"

binder/apt.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
graphviz

binder/environment.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: pangeo
2+
channels:
3+
- conda-forge
4+
dependencies:
5+
- python=3.6
6+
- xarray
7+
- dask
8+
- distributed
9+
- dask-kubernetes
10+
- gcsfs
11+
- zarr
12+
- matplotlib
13+
- numcodecs
14+
- python-blosc
15+
- lz4
16+
- nomkl
17+
- nbserverproxy
18+
- jupyter
19+
- jupyterlab=0.35
20+
- jupyterlab_launcher
21+
- jupyter_client
22+
- ipywidgets
23+
- graphviz
24+
- nodejs
25+
- wradlib
26+
- pip:
27+
- kubernetes
28+
- graphviz

binder/jupyterlab-workspace.json

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
{
2+
"data": {
3+
"layout-restorer:data": {
4+
"main": {
5+
"dock": {
6+
"type": "split-area",
7+
"orientation": "horizontal",
8+
"sizes": [
9+
0.5,
10+
0.5
11+
],
12+
"children": [
13+
{
14+
"type": "tab-area",
15+
"currentIndex": 0,
16+
"widgets": [
17+
"application-mimedocuments:Welcome_Pangeo.md:Markdown Preview"
18+
]
19+
},
20+
{
21+
"type": "split-area",
22+
"orientation": "vertical",
23+
"sizes": [
24+
0.67,
25+
0.33
26+
],
27+
"children": [
28+
{
29+
"type": "tab-area",
30+
"currentIndex": 0,
31+
"widgets": [
32+
"dask-dashboard-launcher:individual-task-stream"
33+
]
34+
},
35+
{
36+
"type": "tab-area",
37+
"currentIndex": 0,
38+
"widgets": [
39+
"dask-dashboard-launcher:individual-progress"
40+
]
41+
}
42+
]
43+
}
44+
]
45+
},
46+
"mode": "multiple-document",
47+
"current": "application-mimedocuments:Welcome_Pangeo.md:Markdown Preview"
48+
},
49+
"left": {
50+
"collapsed": false,
51+
"current": "filebrowser",
52+
"widgets": [
53+
"filebrowser",
54+
"running-sessions",
55+
"dask-dashboard-launcher",
56+
"command-palette",
57+
"tab-manager"
58+
]
59+
},
60+
"right": {
61+
"collapsed": true,
62+
"widgets": []
63+
}
64+
},
65+
"file-browser-filebrowser:cwd": {
66+
"path": ""
67+
},
68+
"dask-dashboard-launcher:individual-task-stream": {
69+
"data": {
70+
"route": "individual-task-stream",
71+
"label": "Task Stream"
72+
}
73+
},
74+
"dask-dashboard-launcher:individual-progress": {
75+
"data": {
76+
"route": "individual-progress",
77+
"label": "Progress"
78+
}
79+
},
80+
"dask-dashboard-launcher": {
81+
"url": "DASK_DASHBOARD_URL"
82+
},
83+
"application-mimedocuments:Welcome.md:Markdown Preview": {
84+
"data": {
85+
"path": "Welcome_Pangeo.md",
86+
"factory": "Markdown Preview"
87+
}
88+
}
89+
},
90+
"metadata": {
91+
"id": "WORKSPACE_ID"
92+
}
93+
}

0 commit comments

Comments
 (0)