Cloud storage
For hosting data Ribasim-NL makes extensive use of this cloud storage: https://deltares.thegood.cloud/. The input data is not open, but the output models are, see the links below. This page explains how the cloud storage is setup and used. For the API docs, see the CloudStorage reference.
Access configuration
Before you can interact with the cloud storage, you need to configure the access. The section on environment variables documents how to do this. The two relevant variables here are:
RIBASIM_NL_CLOUD_PASS
: password for the cloud, to be requested at DeltaresRIBASIM_NL_DATA_DIR
: directory with your local copy of data in the Ribasim-NL cloud
The password can currently only be shared among project collaborators since not all input data is public. The output models, both nationwide (folder Rijkswaterstaat) and per water board, are public. Share links for the models are below. Sort on “Modified” to find the latest versions.
- Rijkswaterstaat
- AaenMaas
- AmstelGooienVecht
- BrabantseDelta
- DeDommel
- Delfland
- DrentsOverijsselseDelta
- HollandsNoorderkwartier
- HollandseDelta
- HunzeenAas
- Limburg
- Noorderzijlvest
- RijnenIJssel
- Rijnland
- Rivierenland
- Scheldestromen
- SchielandendeKrimpenerwaard
- StichtseRijnlanden
- ValleienVeluwe
- Vechtstromen
- WetterskipFryslan
- Zuiderzeeland
Initialize the cloud
Import the Cloud
and initialize it.
from ribasim_nl import CloudStorage
= CloudStorage() cloud_store
Download sources (basisgegevens)
Find all sources
# find all sources, `PBL_watertypenkaart`
= cloud_storage.source_data
sources # download, `PBL_watertypenkaart`
=["PBL_watertypenkaart"]) cloud.download_basisgegevens(bronnen
Upload manipulated data (aangeleverd)
= "Rijkswaterstaat"
authority # upload local `aangeleverd` directory to cloud-storage
=True) cloud_storage.upload_aangeleverd(authority, overwrite
Upload models
= "Rijkswaterstaat"
authority # to see which models have been uploaded
cloud_storage.uploaded_models(authority)
="ijsselmeer") # to upload a new version of the `ijsselmeermodel`. cloud_storage.upload_model(authority, model