Breakthrough-Energy / PreREISE

Generate input data for scenario framework
https://breakthrough-energy.github.io/docs/
MIT License
20 stars 28 forks source link

feat: add script to translate urban and rural shapefiles to USA tamu loadzones #319

Open merrielle opened 1 year ago

merrielle commented 1 year ago

Pull Request doc

Purpose

Create a matrix that can be used to transform urban and rural USA data to USA tamu data. Currently this transformation is strictly based on area.

The USA Tamu shapefiles can be found here: https://besciences.blob.core.windows.net/shapefiles/USA/usa-tamu-loadzones-convex-hull/usa-tamu-loadzones-convex-hull.shp

The resulting matrix generated by this script currently lives here: https://www.dropbox.com/s/y2oopigjg0bxrhb/translate-urban-rural-to-usa-tamu.csv

What the code is doing

Testing

Unit tests in test_generate_rural_shapefiles.py I tested all the code except the translate_urban_rural_to_usa_tamu() because that function requires lots of downloading / writing / reading files.

Where to look

create_usa_tamu_convex_hull_shapefile() has the most important code.

Usage Example/Visuals

How the code can be used and/or images of any graphs, tables or other visuals (not always applicable).

Time estimate

20 mins