.. SPDX-FileCopyrightText: 2019-2023 The PyPSA-Eur Authors SPDX-License-Identifier: CC-BY-4.0 .. _data: ############### Retrieving Data ############### Not all data dependencies are shipped with the git repository, since git is not suited for handling large changing files. Instead we provide separate data bundles which can be obtained using the ``retrieve*`` rules. Rule ``retrieve_databundle`` ============================ .. automodule:: retrieve_databundle Rule ``retrieve_cutout`` ============================ .. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.6382570.svg :target: https://doi.org/10.5281/zenodo.6382570 Cutouts are spatio-temporal subsets of the European weather data from the `ECMWF ERA5 `_ reanalysis dataset and the `CMSAF SARAH-2 `_ solar surface radiation dataset for the year 2013. They have been prepared by and are for use with the `atlite `_ tool. You can either generate them yourself using the ``build_cutouts`` rule or retrieve them directly from `zenodo `__ through the rule ``retrieve_cutout``. The :ref:`tutorial` uses a smaller cutout than required for the full model (30 MB), which is also automatically downloaded. .. note:: To download cutouts yourself from the `ECMWF ERA5 `_ you need to `set up the CDS API `_. **Relevant Settings** .. code:: yaml tutorial: enable: build_cutout: .. seealso:: Documentation of the configuration file ``config/config.yaml`` at :ref:`toplevel_cf` **Outputs** - ``cutouts/{cutout}``: weather data from either the `ERA5 `_ reanalysis weather dataset or `SARAH-2 `_ satellite-based historic weather data. .. seealso:: For details see :mod:`build_cutout` and read the `atlite documentation `_. Rule ``retrieve_natura_raster`` ================================ .. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.4706686.svg :target: https://doi.org/10.5281/zenodo.4706686 This rule, as a substitute for :mod:`build_natura_raster`, downloads an already rasterized version (`natura.tiff `_) of `Natura 2000 `_ natural protection areas to reduce computation times. The file is placed into the ``resources`` sub-directory. **Relevant Settings** .. code:: yaml enable: build_natura_raster: .. seealso:: Documentation of the configuration file ``config/config.yaml`` at :ref:`toplevel_cf` **Outputs** - ``resources/natura.tiff``: Rasterized version of `Natura 2000 `_ natural protection areas to reduce computation times. .. seealso:: For details see :mod:`build_natura_raster`. Rule ``retrieve_electricity_demand`` ==================================== This rule downloads hourly electric load data for each country from the `OPSD platform `_. **Relevant Settings** None. **Outputs** - ``resources/load_raw.csv`` Rule ``retrieve_cost_data`` ================================ This rule downloads techno-economic assumptions from the `technology-data repository `_. **Relevant Settings** .. code:: yaml enable: retrieve_cost_data: costs: year: version: .. seealso:: Documentation of the configuration file ``config/config.yaml`` at :ref:`costs_cf` **Outputs** - ``resources/costs.csv`` Rule ``retrieve_irena`` ================================ .. automodule:: retrieve_irena Rule ``retrieve_ship_raster`` ================================ This rule downloads data on global shipping traffic density from the `World Bank Data Catalogue `_. **Relevant Settings** None. **Outputs** - ``data/shipdensity_global.zip`` Rule ``retrieve_sector_databundle`` ==================================== .. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.5546516.svg :target: https://doi.org/10.5281/zenodo.5546516 In addition to the databundle required for electricity-only studies, another databundle is required for modelling sector-coupled systems. The size of this data bundle is around 640 MB.