From 9cbfaa2d746e797d90239586e7787b598163fb77 Mon Sep 17 00:00:00 2001 From: Andrea Fiorencis Date: Tue, 17 Jun 2025 12:20:59 +0200 Subject: [PATCH] restauro fotovoltaico --- Fotovoltaico.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/Fotovoltaico.py b/Fotovoltaico.py index af0c750..a5508c0 100644 --- a/Fotovoltaico.py +++ b/Fotovoltaico.py @@ -21,4 +21,20 @@ value = num_years add_to_file_yml(path, filename, key, value) suppress_printing(generate_calendar) # generate the calendar for the location coordinates_dataset = suppress_printing(create_coordinates_dataset, [location_eng]) # create a dataset with the coordinates of all the locations -derating_factor = derating_factor_percent / 100 \ No newline at end of file +derating_factor = derating_factor_percent / 100 + +# CALCOLO PRODUTTIVITA' +result_ac_energies_resampled = suppress_printing(simulate_1_kWp_generators, coordinates_dataset, tilt_angle, azimuth) + +# SCALING PRODUTTIVITA' +result_ac_energies_gens = {} # initialization of the output dictionary +result_ac_energies_gens['gen_pv_' + str(capacity) + '_kWp'] = result_ac_energies_resampled[location_eng] * capacity + +# DERATING PRODUTTIVITA' +result_ac_energies_gens_derated = suppress_printing(simulate_gens_derated_productivity, derating_factor, result_ac_energies_gens) + +# GENERAZIONE DATAFRAME +result_ac_energies_to_csv_df = suppress_printing(simulate_unstacked_productivity, result_ac_energies_gens_derated) # create two unstacked dataframe (the other functions work with dictionaries) + +# ESPORTAZIONE RISULTATI IN CSV +result_ac_energies_to_csv_df.to_csv(path_export, encoding='utf-8') \ No newline at end of file