pypsa-meets-earth / pypsa-earth

PyPSA-Earth: A flexible Python-based open optimisation model to study energy system futures around the world.
https://pypsa-earth.readthedocs.io/en/latest/
225 stars 177 forks source link

Linkers to accommodate custom data #499

Open davide-f opened 1 year ago

davide-f commented 1 year ago

Describe the feature you'd like to see

There is the need for easy way to integrate additional custom data of:

To integrate demand time series and renewable production the approach is now not easy: there is the need to create a nc file with the same characteristics of the GEGIS and atlite modules. That is everything but easy and needs to be improved.

pz-max commented 1 year ago

One note from the PyPSA user meeting. We need to make this linkers as clear as possible such that people can:

ekatef commented 1 year ago

Adding a points for a particular use case (@davide-f, @AnasAlgarei, @pz-max thanks a lot for the discussion!). It can be needed to have at least one bus for each administrative region in case if gadm clustering is used. For some areas where OSM data seems to be incomplete, there may be need to add such buses. That may be the case, for example, for Colombia, Chile, Vietnam (picture from openinframap):

image

To keep the gadm areas interconnected, a custom csv can be fetched to add buses for the areas where they are missed. To create such csv, we need a code that checks for every gadm shape if a bus is already available, and if not stores the centroid of the bus in an additional file with the format matching the substation geojson. A branch or a notebook can be added to store such code.

As a more general solution, a function can be added to base_network, but it requires the additional input of gadm shapes.

davide-f commented 11 months ago

Thanks to #842 lines and links are now fully supported

ekatef commented 2 months ago

987 should cover the demand part.

@davide-f would you mind if I'll tick the demand box? 🙃

davide-f commented 2 months ago

Agree :D

ekatef commented 2 months ago

Agree :D

Thanks! A great feeling for Friday evening to get something actually done XD