How to download data?¶
You can have a look at the reference datasets and all related files on the SEDOS Dashboard. On this page you can explore the different files of the dataset and have a look at underlying data. In order to download the dataset to your local computer you need the so-called "collection". The collection on the databus can be visited by clicking on the external link "View collection":
We propose three different methods to download the dataset:
-
Via bash script (works on Linux, Windows support not tested):
In the data section of the collection view on the databus you can find a button which copies bash instructions to clipboard.
On your local maschine you can create a new folder and store instructions into a script file within the folder. Afterwards, you can run the script which will download all files of the dataset (collection) into current folder.
-
Via python:
In order to download a dataset via python, you must first set up a python environment and install the required "data_adapter" package from the SEDOS repository:
Afterwards, you can download a collection from databus by running# Setup virtual python environment python -m venv .venv # Activate environment source .venv/bin/activate # Install data_adapter package pip install git+https://github.com/sedos-project/data_adapter.git
data_adapter
in the command line. You will need the URL of the collection which you can view at collection page on databus:This will download related files into current working directory.
-
By downloading the files manually from OpenenergyPlatform:
Visit https://openenergyplatform.org/dataedit/view/model_draft?tags=246 to see all database tables tagged with the keyword "SEDOS". From there, you can click on a table to see and query/filter related data and to take a look at related metadata. Additionally, you can download (filtered) data from there as CSV or datapackage.
-
By downloading the files manually from Databus:
On the databus you can find related file URLs in section "DOWNLOAD URLS". From there, you can select file paths individually and open the path in your browser. This will download the selected file.