mirror of
https://github.com/heyarne/earth-observation-for-journalism.git
synced 2026-05-06 19:13:40 +02:00
Include sentinel_helpers.py and repository button in jupyter-book
This commit is contained in:
parent
8b92b06476
commit
5461777aea
4 changed files with 22 additions and 10 deletions
13
README.md
13
README.md
|
|
@ -46,15 +46,22 @@ Note that working with this kind of data is resource intensive.
|
||||||
These notebooks download or create roughly 50GB of data, most of which is occupied by compressed GeoTIFF files.
|
These notebooks download or create roughly 50GB of data, most of which is occupied by compressed GeoTIFF files.
|
||||||
They have been executed and tested on a virtual server with 4 CPU cores with a clock speed of 2.6 GHz each and 32 GB of RAM.
|
They have been executed and tested on a virtual server with 4 CPU cores with a clock speed of 2.6 GHz each and 32 GB of RAM.
|
||||||
|
|
||||||
There are notebooks cells with `%%time` or `%%timeit` magic commands. There ouput contains infromation about execution time on the system described above.
|
There are notebooks cells with `%%time` or `%%timeit` magic commands.
|
||||||
|
Their ouput contains information about the execution time on the system described above.
|
||||||
|
|
||||||
## Building the Jupyter Book
|
## Building the Jupyter Book
|
||||||
|
|
||||||
The `jupyter-book` dependency is included in the `Dockerfile`.
|
The `jupyter-book` dependency is included in the `Dockerfile`.
|
||||||
You can build a book from a running container by executing the following command on the Docker host:
|
You can build a book from a running container by executing the following command when the container above is running:
|
||||||
|
|
||||||
```
|
```
|
||||||
docker run eratosthenes jupyter-book build .
|
docker exec eratosthenes jupyter-book build .
|
||||||
|
```
|
||||||
|
|
||||||
|
Alternatively you can start a container just to build the book
|
||||||
|
|
||||||
|
```
|
||||||
|
docker run -v "$(pwd)":/home/jovyan eratosthenes:latest jupyter-book build .
|
||||||
```
|
```
|
||||||
|
|
||||||
The resulting book can be found in the directory `_build/html/`.
|
The resulting book can be found in the directory `_build/html/`.
|
||||||
|
|
|
||||||
10
_config.yml
10
_config.yml
|
|
@ -12,11 +12,9 @@ logo: great-forty-foot-telescope-wikipedia.png # A path to the book logo
|
||||||
execute:
|
execute:
|
||||||
execute_notebooks: "off"
|
execute_notebooks: "off"
|
||||||
|
|
||||||
sphinx:
|
repository:
|
||||||
config:
|
url: https://github.com/heyarne/remote-sensing-for-journalism
|
||||||
nb_custom_formats:
|
html:
|
||||||
.py:
|
use_repository_button: true
|
||||||
- jupytext.reads
|
|
||||||
- fmt: Rmd
|
|
||||||
|
|
||||||
exclude_patterns: [_build, .cache, .config, .local, .npm, Thumbs.db, .DS_Store, "**.ipynb_checkpoints"]
|
exclude_patterns: [_build, .cache, .config, .local, .npm, Thumbs.db, .DS_Store, "**.ipynb_checkpoints"]
|
||||||
|
|
|
||||||
2
_toc.yml
2
_toc.yml
|
|
@ -28,4 +28,4 @@
|
||||||
- file: "sources/03c dNBR.ipynb"
|
- file: "sources/03c dNBR.ipynb"
|
||||||
- part: "Appendix"
|
- part: "Appendix"
|
||||||
chapters:
|
chapters:
|
||||||
- file: "sources/sentinel_helpers.py"
|
- file: "sources/XX sentinel_helpers.rst"
|
||||||
|
|
|
||||||
7
sources/XX sentinel_helpers.rst
Normal file
7
sources/XX sentinel_helpers.rst
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
Sentinel Helpers
|
||||||
|
----------------
|
||||||
|
|
||||||
|
A collection of helper functions that implement repeating tasks. These are reused throughout the different notebooks.
|
||||||
|
|
||||||
|
.. include:: sentinel_helpers.py
|
||||||
|
:literal:
|
||||||
Loading…
Add table
Add a link
Reference in a new issue