feat: generate updated figures for pv production of layer 6
This commit is contained in:
parent
5ab3c8124f
commit
3619be4837
BIN
figures/all_layers_pv_generation_all_4_cities.png
Normal file
BIN
figures/all_layers_pv_generation_all_4_cities.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.2 MiB |
BIN
figures/layer_6_pv_generation_multi_city.pdf
Normal file
BIN
figures/layer_6_pv_generation_multi_city.pdf
Normal file
Binary file not shown.
BIN
figures/layers_total_pv_all_4_cities.png
Normal file
BIN
figures/layers_total_pv_all_4_cities.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 714 KiB |
BIN
figures/lcoe_values.png
Normal file
BIN
figures/lcoe_values.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 MiB |
BIN
figures/self_sufficiency.png
Normal file
BIN
figures/self_sufficiency.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 MiB |
BIN
figures/yearly_pv_generation.png
Normal file
BIN
figures/yearly_pv_generation.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 667 KiB |
22
main.py
22
main.py
@ -18,9 +18,9 @@ from pv_assessment.pv_system_assessment_with_lcoe import PvSystemAssessment
|
||||
from scripts import random_assignation
|
||||
|
||||
input_file_1 = "./data/updated_geojson_layers/output_layer_6.geojson"
|
||||
input_file_2 = "./data/updated_geojson_layers/output_layer_20.geojson"
|
||||
input_file_3 = "./data/updated_geojson_layers/output_layer_38.geojson"
|
||||
input_file_4 = "./data/updated_geojson_layers/output_layer_53.geojson"
|
||||
# input_file_2 = "./data/updated_geojson_layers/output_layer_20.geojson"
|
||||
# input_file_3 = "./data/updated_geojson_layers/output_layer_38.geojson"
|
||||
# input_file_4 = "./data/updated_geojson_layers/output_layer_53.geojson"
|
||||
demand_file = "data/energy_demand_data.csv"
|
||||
|
||||
output_path = (Path(__file__).parent.parent / 'hub/out_files').resolve()
|
||||
@ -89,9 +89,9 @@ def process_city(input_file, name_suffix):
|
||||
|
||||
|
||||
city1 = process_city(input_file_1, "_city1")
|
||||
city2 = process_city(input_file_2, "_city2")
|
||||
city3 = process_city(input_file_3, "_city3")
|
||||
city4 = process_city(input_file_4, "_city4")
|
||||
# city2 = process_city(input_file_2, "_city2")
|
||||
# city3 = process_city(input_file_3, "_city3")
|
||||
# city4 = process_city(input_file_4, "_city4")
|
||||
|
||||
print("All cities processed.")
|
||||
|
||||
@ -125,14 +125,14 @@ def city_to_gdf(city_obj):
|
||||
return gdf
|
||||
|
||||
gdf_city1 = city_to_gdf(city1)
|
||||
gdf_city2 = city_to_gdf(city2)
|
||||
gdf_city3 = city_to_gdf(city3)
|
||||
gdf_city4 = city_to_gdf(city4)
|
||||
# gdf_city2 = city_to_gdf(city2)
|
||||
# gdf_city3 = city_to_gdf(city3)
|
||||
# gdf_city4 = city_to_gdf(city4)
|
||||
|
||||
all_buildings_gdf = gpd.GeoDataFrame(pd.concat([gdf_city1, gdf_city2, gdf_city3, gdf_city4], ignore_index=True),
|
||||
all_buildings_gdf = gpd.GeoDataFrame(pd.concat([gdf_city1], ignore_index=True),
|
||||
crs=gdf_city1.crs)
|
||||
|
||||
print("Dataframe for all 4 cities created, now plotting and saving figures")
|
||||
print("Dataframe for all cities created, now plotting and saving figures")
|
||||
|
||||
layers_file = "data/cmm_limites_avec_mtl.geojson"
|
||||
layers_gdf = gpd.read_file(layers_file)
|
||||
|
Loading…
Reference in New Issue
Block a user