Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add crs input to gadm function #379

Merged
merged 3 commits into from
Jun 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions doc/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ Upcoming Release

* Revise dropnan for regions: `PR #366 <https://github.com/pypsa-meets-africa/pypsa-africa/pull/366>`_

* Fix bug in GADM clustering. Missing crs input. `PR #379 <https://github.com/pypsa-meets-africa/pypsa-africa/pull/379>`_


PyPSA-Africa 0.0.2 (6th April 2022)
=====================================

Expand Down
3 changes: 2 additions & 1 deletion scripts/cluster_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,8 @@ def n_bounds(model, n_id):

def busmap_for_gadm_clusters(n, gadm_level):

gdf = get_GADM_layer(country_list, gadm_level)
geo_crs = snakemake.config["crs"]["geo_crs"] # load default crs
gdf = get_GADM_layer(country_list, gadm_level, geo_crs)

def locate_bus(coords, co):

Expand Down