PyPSA / pypsa-eur

PyPSA-Eur: A Sector-Coupled Open Optimisation Model of the European Energy System
https://pypsa-eur.readthedocs.io/
310 stars 210 forks source link

Population data from gridded cell rather than own NUTS3 interpolation #512

Open fneum opened 2 years ago

fneum commented 2 years ago

https://www.worldpop.org/geodata/summary?id=24777

Estimated total number of people per grid-cell. The dataset is available to download in Geotiff format at a resolution of 30 arc (approximately 1km at the equator). The projection is Geographic Coordinate System, WGS84. The units are number of people per pixel. The mapping approach is Random Forest-based dasymetric redistribution.

License

CC-BY-4.0

API Interface

with REST API

https://www.worldpop.org/sdi/introapi

Methods

https://www.worldpop.org/methods

skortmann commented 2 years ago

Hi @fneum, is this intended to grab the build_population_layout function? Should the nowaby workaround with the cutouts be replaced via the raster file with the population? Is the usecase to differentiate between the rural and urban population split like in here? Or is it rather to calculate the complete numbers of clustered regions if they differ from countries or the nuts-shapes? Would be willing and interested to support!

fneum commented 2 years ago

Hi @skortmann, great! It indeed targets the https://github.com/PyPSA/pypsa-eur-sec/blob/master/scripts/build_population_layouts.py function. The motivation to use the raster file instead of the NUTS3 population data is that the interpolation between NUTS3 and clustered model regions may be quite inaccurate (population is assigned proportionally to overlapping area currently) and it may simplify the code (as it doesn't need to interpolation, just aggregation). Still it would need to disentangle rural from urban population. It would also be important to understand how NUTS3 interpolation and worldpop raster data differ.

I'd be happy to review a pull request if you want to have a first shot at replacing the dataset.