Custom Data Integration#
PyPSA-Meets-Earth allows users to extend the model with custom data to better reflect local or specialized scenarios. This section guides users on integrating custom datasets, ensuring smooth integration and reproducibility.
Overview#
Custom data can be used to replace or supplement the default datasets provided by the model. Supported types include:
Power grids and lines
Power plants
Electricity demand
Heat demand
Industry demand and databases
Transport demand
Water costs
Hydrogen underground storage
Gas networks
Export ports
Airports
Renewable energy sources (e.g., CSP, rooftop solar, solar PV)
Note
All custom data can remain private if desired. Users are not required to share their data publicly.
Configuration#
The config.default.yaml file controls which custom data options are enabled. Each option can be set to true or false. When enabled, the model will expect corresponding files in the specified directories.
custom_data:
renewables: []
elec_demand: false
heat_demand: false
industry_demand: false
industry_database: false
transport_demand: false
water_costs: false
h2_underground: false
add_existing: false
custom_sectors: false
gas_network: false
export_ports: false
airports: false
Required File Locations and Formats#
Custom Data Type |
Required File Path |
|---|---|
Gas network |
|
Export ports |
|
Airports |
|
Powerplants |
|
Demand/Renewables Time Series |
|
Note
Custom datasets should follow the filename conventions specified by PyPSA-Earth to ensure proper integration. See the demand section for details.
Reference Data Sources#
For guidance on sourcing data, refer to the following table:
Name |
Link |
Sector |
Global |
Country |
API |
|---|---|---|---|---|---|
IEA |
All |
✔ |
? |
||
WRI |
All |
✔ |
? |
||
OECD |
All |
✔ |
? |
Note
This table is continuously updated to include new global and country-level datasets.
Best Practices#
Keep custom datasets in the recommended directories to avoid conflicts
Maintain the same format and prescribed filenames as the default CSV/NetCDF files for seamless integration
Document any assumptions or modifications made in custom data for future reproducibility
Additional Notes#
If using GADM clustering, ensure at least one bus per administrative region. Missing buses can be added using a custom CSV created with centroids matching the substation GeoJSON format.
Private datasets do not need to be shared publicly.
Users are encouraged to contribute improvements back to the repository following contribution guidelines. See the how to contribute guide for details.
Usage Instructions#
Enable the desired options in
config.default.yaml.Place required custom CSV/NetCDF files in the specified directories.
Integrate demand/renewable time series following the instructions.
Run PyPSA-Meets-Earth; the model will automatically use the custom datasets.