feat: generate updated figures for pv production of layer 6

This commit is contained in:
Majid Rezaei 2024-12-17 20:25:06 -05:00
parent 5ab3c8124f
commit 3619be4837
7 changed files with 11 additions and 11 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 MiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 714 KiB

BIN
figures/lcoe_values.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 667 KiB

22
main.py
View File

@ -18,9 +18,9 @@ from pv_assessment.pv_system_assessment_with_lcoe import PvSystemAssessment
from scripts import random_assignation from scripts import random_assignation
input_file_1 = "./data/updated_geojson_layers/output_layer_6.geojson" input_file_1 = "./data/updated_geojson_layers/output_layer_6.geojson"
input_file_2 = "./data/updated_geojson_layers/output_layer_20.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_3 = "./data/updated_geojson_layers/output_layer_38.geojson"
input_file_4 = "./data/updated_geojson_layers/output_layer_53.geojson" # input_file_4 = "./data/updated_geojson_layers/output_layer_53.geojson"
demand_file = "data/energy_demand_data.csv" demand_file = "data/energy_demand_data.csv"
output_path = (Path(__file__).parent.parent / 'hub/out_files').resolve() 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") city1 = process_city(input_file_1, "_city1")
city2 = process_city(input_file_2, "_city2") # city2 = process_city(input_file_2, "_city2")
city3 = process_city(input_file_3, "_city3") # city3 = process_city(input_file_3, "_city3")
city4 = process_city(input_file_4, "_city4") # city4 = process_city(input_file_4, "_city4")
print("All cities processed.") print("All cities processed.")
@ -125,14 +125,14 @@ def city_to_gdf(city_obj):
return gdf return gdf
gdf_city1 = city_to_gdf(city1) gdf_city1 = city_to_gdf(city1)
gdf_city2 = city_to_gdf(city2) # gdf_city2 = city_to_gdf(city2)
gdf_city3 = city_to_gdf(city3) # gdf_city3 = city_to_gdf(city3)
gdf_city4 = city_to_gdf(city4) # 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) 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_file = "data/cmm_limites_avec_mtl.geojson"
layers_gdf = gpd.read_file(layers_file) layers_gdf = gpd.read_file(layers_file)