Skip to content

rs-demo

Jupyter notebooks that showcase the features of RS-Python, the Copernicus Reference System Python, and the local mode that runs the whole system on your computer with Docker Compose.

Overview

Folder Content
notebooks/demos Demonstrations of the main use cases: search the stations, stage and process Sentinel-1 and Sentinel-3 products, inspect the generated products.
notebooks/tutorials Tutorials, e.g. prefect+dask that shows how to run and deploy Prefect flows and use Dask from Jupyter.
notebooks/init-prefect Notebooks used by the administrators to initialise the processing environment: env-vars Prefect block, processing-storage-configuration Prefect variable.
notebooks/init-dask-clusters Notebooks to create the Dask clusters of the staging and of the DPR processors.
notebooks/processor-integration Notebook and configuration files used for the integration of a new DPR processor.
notebooks/sprints Demonstrations of the features delivered at each sprint.
notebooks/z-integration Integration tests, run after the other notebooks.
notebooks/resources Python helpers used by the notebooks, e.g. init_demo() that initialises your Prefect block, an RsClient instance and your object storage credentials.
local-mode The local mode: Docker Compose file and configuration.
cluster-mode Script to run the notebooks on a cluster.

Getting started

On a cluster

  1. Log in to the JupyterHub of your platform, e.g. https://processing.ops.rs-python.eu/jupyter on the reference platform. You need an account on the platform and an API key.
  2. Open a terminal and clone this repository: git clone https://github.com/RS-PYTHON/rs-demo.git
  3. Open a notebook of the rs-demo/notebooks/demos or rs-demo/notebooks/tutorials folders and run it. The first cells call init_demo(), that asks for your API key the first time and saves it in your ~/.env file.

The rs-client-libraries are already installed in JupyterHub, see JupyterHub to use another version.

On your computer

Run the whole system with Docker Compose, see Local mode:

cd local-mode
docker compose pull
docker compose down -v; docker compose up

Documentation

Repository Relationship
rs-client-libraries The library and flows used by the notebooks.
rs-server, rs-dpr-service The services run by the local mode. Their CI tests their Docker images by running these notebooks.
rs-testmeans The mockups of the stations run by the local mode.
rs-workflow-env The Jupyter and Dask images.
rs-documentation Online documentation of the whole project.