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

clean out all nuts3 references

Open fneum opened this issue 3 years ago • 6 comments

The goal is to eliminate shape reprojection from NUTS3 to model regions. Instead, use gridded data from

https://datadryad.org/stash/dataset/doi:10.5061/dryad.dk1j0

and

https://www.worldpop.org/

Checkout:

https://github.com/martacki/pypsa-ua_gdp_data

fneum avatar Mar 24 '22 17:03 fneum

So using 5 arcmin dataset looks not quite close to NUTS3-level dataset

gridded dataset -> NUTS3 aggregated -> NUTS3 original

image

Using 30 arcsec dataset is quite slow.

fneum avatar Mar 28 '22 11:03 fneum

Maybe mismatching units? NUTS3 dataset was pop in abs. values IIRC, the gridded pop data should be pop density.

euronion avatar Mar 28 '22 11:03 euronion

dunno if you intend to use another formula now. For ua and md, that seems to be the currently best solution, however I have the feeling that for germany the current nuts3 data provides a much better distribution...

nuts3 for germany: nuts3_germany suggested data sources (according to the formulas used in my private repo that you're quoting): gdp+pop_germany

martacki avatar Mar 28 '22 12:03 martacki

Using 30 arcsec dataset is quite slow.

ah, but in the repo I'm not using the 30 arcsec data, I think. Sorry, overseen this comment... is unifying the data source with ua and md the only motivation for this pr? (ie. why clean out nuts3?)

martacki avatar Mar 28 '22 12:03 martacki

I just wanted to sketch how it could work based on what you did for UA/MD and explore how it would compare to NUTS3 data. The motivation would be that it simplifies the code (the whole nuts3 function would be superfluous) and we could possible go to higher resolutions than nuts3. Also: opportunity to remove yet another vresutils dependency.

fneum avatar Mar 28 '22 12:03 fneum

@FabianHofmann Can we reuse the atlite code used for the ExclusionCalculator to implement the calculation faster than what xagg has to offer? (Determine overlaps between regions / shapes and a raster / the population raster data).

euronion avatar Mar 29 '22 07:03 euronion