Revise urban/rural popualtion assignments
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