pypsa-usa icon indicating copy to clipboard operation
pypsa-usa copied to clipboard

Revise urban/rural popualtion assignments

Open trevorb1 opened this issue 2 years ago • 0 comments

Feature Request

In PyPSA-Eur, general urban/rural rates are given at a country level, then rural cells are assigned based on population density until the rural percentage for the country is reached.

In the rule build_population_layout, the rural and urban population are assigned on a county by county level. In some cases, where the county is smaller then a cell cutout, I believe some odd behaviour is happening. Therefore, rural/urban rates are the same for each cell in a county.

It would be nice to synchronize logic with PyPSA-Eur.

Suggested Solution

Commented code in build_population_layout.py has a suggested implementation.

https://github.com/PyPSA/pypsa-usa/blob/67c0d271bffff65a9127e05616fa8ceb7d8a9f95/workflow/scripts/build_population_layouts.py#L176-L236

Additional Info

No response

trevorb1 avatar Sep 30 '23 01:09 trevorb1