pvcompare.analysis.loop_mvs

pvcompare.analysis.loop_mvs(latitude, longitude, years, storeys, country, variable_name, variable_column, csv_file_variable, start, stop, step, scenario_name, user_inputs_mvs_directory=None, outputs_directory=None)[source]

Starts multiple MVS simulations with a range of values for a specific parameter.

This function applies apply_pvcompare(), one time. After that

apply_mvs() is executed in a loop. Before each loop a specific variable value is changed. The

results, stored in two excel sheets, are copied into loop_output_directory.

Parameters
  • latitude (float) – latitude of the location

  • longitude (foat) – longitude of the location

  • years (list) – year(s) for simulation

  • storeys (int) – number of storeys

  • country (str) – country of location

  • variable_name (str) – name of the variable that is atapted in each loop

  • variable_column (str) – name of the variable column in the csv file

  • csv_file_variable (str) – name of the csv file the variable is saved in

  • start (int) – first value of the variable

  • stop (int) – last value of the variable. notice that stop > start

  • step (int) – step of increase

  • scenario_name (str) – Name of the Scenario. The name should follow the scheme: “Scenario_A1”, “Scenario_A2”, “Scenario_B1” etc.

  • user_inputs_mvs_directory (str or None) – Default: user_inputs_mvs_directory = constants.DEFAULT_USER_INPUTS_MVS_DIRECTORY

  • outputs_directory (str or None) – Path to output directory. Default: outputs_directory = constants.DEFAULT_OUTPUTS_DIRECTORY