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

Enable read-in of solar and wind capacity from custom_powerplant data #682

Open pz-max opened 1 year ago

pz-max commented 1 year ago

Describe the feature you'd like to see

Custom powerplant data is currently read in with GIS tags here: https://github.com/pypsa-meets-earth/pypsa-earth/blob/6a8871dafcc844703123377520669578999b86f1/scripts/build_powerplants.py#L237-L250

I think if the custom powerplant data includes solar and wind data, we should allow to read in the data. Two options exist:

  1. We create another function that is updating the p_nom data similar to the IRENA stats
  2. We update by default p_nom as with ror

I think using p_nom from the custom_data by default makes sense. The IRENA scaling could happen afterwards if the custom_data is below the IRENA stats (IRENA scaling would need to be checked how it work if 2.) is implemented).

pz-max commented 1 year ago

@yerbol-akhmetov

martacki commented 1 year ago

I suggest similar treatment as in PyPSA-Eur in OPSD_renewables function.

We have an importer for RE gens from ppl.csv (which includes custom ppls), set their p_nom_min and p_nom (and updates p_nom_max, if necessary, e.g. when p_nom_min > p_nom_max, then p_nom_max=p_nom_min), and IRENA_stats then only updates countries where there are no RE capacities yet.

pz-max commented 1 year ago

I suggest similar treatment as in PyPSA-Eur in OPSD_renewables function.

We have an importer for RE gens from ppl.csv (which includes custom ppls), set their p_nom_min and p_nom (and updates p_nom_max, if necessary, e.g. when p_nom_min > p_nom_max, then p_nom_max=p_nom_min), and IRENA_stats then only updates countries where there are no RE capacities yet.

Sounds like the solution we should adapt :)