Parametric Analysis with MorphingIterator

This notebook demonstrates the most powerful feature of the pyfwg library: the MorphingIterator class.

This class is designed for running parametric studies, where you need to execute the morphing process multiple times with different parameters (e.g., different GCMs, interpolation methods, or even different EPW files). It uses a Pandas DataFrame to define all the runs in a structured and easy-to-manage way.

The Iterator Workflow

The iterator is designed to be used in a clear, multi-step process that provides control and visibility at each stage:

  1. Instantiate the Iterator: Choose which tool you want to work with (MorphingWorkflowGlobal or MorphingWorkflowEurope).

  2. Set Default Values: Define parameters that are common to all runs in your batch.

  3. Define the Runs DataFrame: Specify the parameters that will change for each run, using either an Excel file or a Pandas DataFrame directly.

  4. Generate the Plan & Prepare Workflows: A single command that applies all defaults, validates the plan, and prepares all the workflow instances for execution.

  5. Execute the Workflows: A final command to run the entire batch of simulations.

Step 1: Instantiate the Iterator

First, we import the necessary classes and create an instance of the MorphingIterator. We must tell it which workflow class it will be managing. In this example, we’ll use MorphingWorkflowGlobal.

[1]:
import pandas as pd
import os
from pyfwg import MorphingIterator, MorphingWorkflowGlobal, export_template_to_excel, load_runs_from_excel, get_available_lczs, DEFAULT_GLOBAL_GCMS

# We specify that we want to use the Global tool for all runs.
iterator = MorphingIterator(workflow_class=MorphingWorkflowGlobal)
2025-09-29 09:58:20 - INFO - MorphingIterator initialized for MorphingWorkflowGlobal.

Step 2: Pre-flight Checks & Common Parameters

Before defining a large batch of runs, it’s good practice to check which parameters are valid. Here, we’ll get the available LCZs for our weather files. Then, we’ll use set_default_values to define parameters that will be the same for all runs, such as the JAR path and the LCZs we just validated.

[2]:
# Define the path to the JAR file and the EPW files to be processed.
jar_path = r"D:\OneDrive - Universidad de Cádiz (uca.es)\Programas\FutureWeatherGenerator_v3.0.1.jar"
epw_files_dir = 'epws/wo_pattern'
epw_files = [os.path.join(epw_files_dir, f) for f in os.listdir(epw_files_dir) if f.endswith('.epw')]

# Get available LCZs for each EPW file to ensure our choices are valid.
available_lczs = get_available_lczs(
    epw_paths=epw_files,
    fwg_jar_path=jar_path,
)

# Define the keyword mapping rules that will be used for all runs in this batch.
mapping_rules = {
    'city': {
        'seville': ['sevilla', 'SVQ'],
        'london': ['london', 'gatwick']
    },
    'uhi': {
        'type-1': 'type-1',
        'type-2': 'type-2'
    }
}
2025-09-29 09:58:20 - INFO - --- Fetching available LCZs for 2 EPW file(s) ---
2025-09-29 09:58:20 - INFO - Checking LCZ pair (Original: 0, Target: 0) availability for GBR_London.Gatwick.037760_IWEC_uhi_type-2.epw...
2025-09-29 09:58:20 - INFO - --- Applying UHI effect to GBR_London.Gatwick.037760_IWEC_uhi_type-2.epw ---
2025-09-29 09:58:20 - INFO - Executing command: java -cp "D:\OneDrive - Universidad de Cádiz (uca.es)\Programas\FutureWeatherGenerator_v3.0.1.jar" futureweathergenerator.UHI_Morph D:\Python\pyfwg\pyfwg\tutorials\epws\wo_pattern\GBR_London.Gatwick.037760_IWEC_uhi_type-2.epw C:\Users\sanga\AppData\Local\Temp\tmp40og259j/ true 0:0
2025-09-29 09:58:23 - INFO - Available LCZs for 'GBR_London.Gatwick.037760_IWEC_uhi_type-2.epw': [1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 14, 15, 17]
2025-09-29 09:58:23 - INFO - Checking LCZ pair (Original: 0, Target: 0) availability for sevilla_in_this_one_the_uhi_is_type-1.epw...
2025-09-29 09:58:23 - INFO - --- Applying UHI effect to sevilla_in_this_one_the_uhi_is_type-1.epw ---
2025-09-29 09:58:23 - INFO - Executing command: java -cp "D:\OneDrive - Universidad de Cádiz (uca.es)\Programas\FutureWeatherGenerator_v3.0.1.jar" futureweathergenerator.UHI_Morph D:\Python\pyfwg\pyfwg\tutorials\epws\wo_pattern\sevilla_in_this_one_the_uhi_is_type-1.epw C:\Users\sanga\AppData\Local\Temp\tmp_doxvuln/ true 0:0
2025-09-29 09:58:26 - INFO - Available LCZs for 'sevilla_in_this_one_the_uhi_is_type-1.epw': [2, 3, 6, 8, 9, 11, 12, 13, 14, 16]

set_default_values Parameters

This method allows you to define parameters that are common to all runs in your batch, so you don’t have to repeat them in every row of your DataFrame. All arguments are optional.

Workflow Control Parameters
  • final_output_dir (str): A default output directory for runs that don’t specify one.

  • output_filename_pattern (str): A default renaming pattern. Must contain {ssp}/{rcp} and {year}.

  • scenario_mapping (Dict): A default dictionary for mapping scenario names (e.g., {'ssp126': 'SSP1-2.6'}).

  • fwg_jar_path (str): The path to the .jar file. It’s highly recommended to set this here.

  • run_incomplete_files (bool, default: False): If True, also processes partially categorized files.

  • delete_temp_files (bool, default: True): If True, deletes temporary folders after processing.

  • temp_base_dir (str): A default base directory for temporary files.

  • fwg_show_tool_output (bool, default: False): If True, prints the FWG tool’s console output in real-time.

  • fwg_params (Dict, default: None): A dictionary for base FWG parameters. Any explicit fwg_ argument will override this.

Future Weather Generator Tool Parameters
  • fwg_gcms (List[str], default: None): For Global tool only. A default list of GCMs to use.

  • fwg_rcm_pairs (List[str], default: None): For Europe tool only. A default list of GCM-RCM pairs to use.

  • fwg_create_ensemble (bool, default: True): If True, creates an ensemble from the selected models.

  • fwg_winter_sd_shift (float, default: 0.0): Winter standard deviation shift.

  • fwg_summer_sd_shift (float, default: 0.0): Summer standard deviation shift.

  • fwg_month_transition_hours (int, default: 72): Hours for month transition.

  • fwg_use_multithreading (bool, default: True): Use multithreading.

  • fwg_interpolation_method_id (int, default: 0): Interpolation method ID.

  • fwg_limit_variables (bool, default: True): Limit variables to physical bounds.

  • fwg_solar_hour_adjustment (int, default: 1): Solar hour adjustment option.

  • fwg_diffuse_irradiation_model (int, default: 1): Diffuse irradiation model option.

  • fwg_add_uhi (bool, default: True): Add UHI effect.

  • fwg_epw_original_lcz (int, default: 14): Original EPW LCZ.

  • fwg_target_uhi_lcz (int, default: 1): Target UHI LCZ.

[3]:
# Set the default values that will be common to all runs.
iterator.set_default_values(
    fwg_jar_path=jar_path,
    # To avoid overwriting files, you should include in the filename pattern the parameters that change between runs.
    # In this case, it'll be only fwg_gcms, therefore we should include {fwg_gcms} in output_filename_pattern
    output_filename_pattern='{city}_{uhi}_gcm-{fwg_gcms}_{ssp}_{year}',
    # We just checked that LCZs 2 and 3 are available, so we can use them as defaults.
    # If they were different for each file, we would define them in the DataFrame instead.
    fwg_epw_original_lcz=2,
    fwg_target_uhi_lcz=3
)
2025-09-29 09:58:26 - INFO - Custom default values have been set for the iterator: {'output_filename_pattern': '{city}_{uhi}_gcm-{fwg_gcms}_{ssp}_{year}', 'fwg_jar_path': 'D:\\OneDrive - Universidad de Cádiz (uca.es)\\Programas\\FutureWeatherGenerator_v3.0.1.jar', 'fwg_epw_original_lcz': 2, 'fwg_target_uhi_lcz': 3}

Step 3: Define the Runs DataFrame

This is where you specify what will change between each run. You have three flexible options for this.

Step 3.1: Option A - Using an Excel Template

This is the recommended approach for non-programmers or for managing a large number of runs. You can export a blank template, fill it in with your scenarios, and load it back into pyfwg.

[4]:
# 1. Export the blank template to an Excel file.
template_path = 'my_parametric_study.xlsx'
export_template_to_excel(iterator, file_path=template_path)
print(f"--- Original Template Structure (saved to '{template_path}') ---")
# Read and display the empty template to show the available columns.
print(pd.read_excel(template_path))
2025-09-29 09:58:26 - INFO - Generating Excel template for MorphingWorkflowGlobal...
2025-09-29 09:58:26 - INFO - Template successfully exported to 'D:\Python\pyfwg\pyfwg\tutorials\my_parametric_study.xlsx'
--- Original Template Structure (saved to 'my_parametric_study.xlsx') ---
Empty DataFrame
Columns: [epw_paths, input_filename_pattern, keyword_mapping, final_output_dir, output_filename_pattern, scenario_mapping, fwg_jar_path, run_incomplete_files, delete_temp_files, temp_base_dir, fwg_show_tool_output, fwg_params, fwg_gcms, fwg_create_ensemble, fwg_winter_sd_shift, fwg_summer_sd_shift, fwg_month_transition_hours, fwg_use_multithreading, fwg_interpolation_method_id, fwg_limit_variables, fwg_solar_hour_adjustment, fwg_diffuse_irradiation_model, fwg_add_uhi, fwg_epw_original_lcz, fwg_target_uhi_lcz]
Index: []

[0 rows x 25 columns]
[5]:
df_raw = pd.read_excel(template_path)
df_raw
[5]:
epw_paths input_filename_pattern keyword_mapping final_output_dir output_filename_pattern scenario_mapping fwg_jar_path run_incomplete_files delete_temp_files temp_base_dir ... fwg_summer_sd_shift fwg_month_transition_hours fwg_use_multithreading fwg_interpolation_method_id fwg_limit_variables fwg_solar_hour_adjustment fwg_diffuse_irradiation_model fwg_add_uhi fwg_epw_original_lcz fwg_target_uhi_lcz

0 rows × 25 columns

[6]:
# --- At this point, you would open 'my_parametric_study.xlsx', ---
# --- fill in the rows with your scenarios, and save it.      ---
# --- For this example, we assume you saved it as 'my_parametric_study_modified.xlsx' ---

# 2. Load the completed scenarios from your edited Excel file.
template_path_mod = 'my_parametric_study_modified.xlsx'

# Read the raw data from the Excel file once to be efficient.
modified_df_raw = pd.read_excel(template_path_mod)

print("\n--- Highlighting the Key Modified Columns ---")
# Display only the columns that were manually edited to make the changes clear.
# These are the parameters that vary between the different runs in this example.
key_columns = ['epw_paths', 'final_output_dir', 'fwg_gcms']
modified_df_raw[key_columns]

--- Highlighting the Key Modified Columns ---
[6]:
epw_paths final_output_dir fwg_gcms
0 epws/wo_pattern/GBR_London.Gatwick.037760_IWEC... results_using_excel/london ['CanESM5']
1 epws/wo_pattern/sevilla_in_this_one_the_uhi_is... results_using_excel/seville ['MIROC6']
[7]:
# 3. Load the runs using the pyfwg helper function to correct data types.
runs_from_excel = load_runs_from_excel(template_path_mod)

print("\n--- DataFrame after Loading with `load_runs_from_excel` (Data types are now correct) ---")
# Display the final DataFrame. The 'fwg_gcms' column now contains actual Python lists.
runs_from_excel
2025-09-29 09:58:26 - INFO - Loading runs from 'my_parametric_study_modified.xlsx'...
2025-09-29 09:58:27 - INFO - Runs loaded and data types converted successfully.

--- DataFrame after Loading with `load_runs_from_excel` (Data types are now correct) ---
[7]:
epw_paths input_filename_pattern keyword_mapping final_output_dir output_filename_pattern scenario_mapping fwg_jar_path run_incomplete_files delete_temp_files temp_base_dir ... fwg_summer_sd_shift fwg_month_transition_hours fwg_use_multithreading fwg_interpolation_method_id fwg_limit_variables fwg_solar_hour_adjustment fwg_diffuse_irradiation_model fwg_add_uhi fwg_epw_original_lcz fwg_target_uhi_lcz
0 epws/wo_pattern/GBR_London.Gatwick.037760_IWEC... NaN NaN results_using_excel/london NaN NaN NaN NaN NaN NaN ... NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN
1 epws/wo_pattern/sevilla_in_this_one_the_uhi_is... NaN NaN results_using_excel/seville NaN NaN NaN NaN NaN NaN ... NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN

2 rows × 25 columns

Step 3.2: Option B - Using a Pandas DataFrame Directly

For quick tests or when working within a script, you can define your runs programmatically.

[8]:
# Get the blank template DataFrame.
runs_df_direct = iterator.get_template_dataframe()

# --- Run 1: Run the first EPW file with one set of GCMs ---
runs_df_direct.loc[0] = {
    'epw_paths': epw_files[0],
    'final_output_dir': './results/0',
    'fwg_gcms': ['CanESM5']
}

# --- Run 2: Run the second EPW file with a different GCM ---
runs_df_direct.loc[1] = {
    'epw_paths': epw_files[1],
    'final_output_dir': './results/1',
    'fwg_gcms': ['MIROC6']
}

print("--- Runs Defined Directly in Pandas ---")
print(runs_df_direct)
--- Runs Defined Directly in Pandas ---
                                           epw_paths  input_filename_pattern  \
0  epws/wo_pattern\GBR_London.Gatwick.037760_IWEC...                     NaN
1  epws/wo_pattern\sevilla_in_this_one_the_uhi_is...                     NaN

   keyword_mapping final_output_dir  output_filename_pattern  \
0              NaN      ./results/0                      NaN
1              NaN      ./results/1                      NaN

   scenario_mapping  fwg_jar_path  run_incomplete_files  delete_temp_files  \
0               NaN           NaN                   NaN                NaN
1               NaN           NaN                   NaN                NaN

   temp_base_dir  ...  fwg_summer_sd_shift  fwg_month_transition_hours  \
0            NaN  ...                  NaN                         NaN
1            NaN  ...                  NaN                         NaN

  fwg_use_multithreading  fwg_interpolation_method_id  fwg_limit_variables  \
0                    NaN                          NaN                  NaN
1                    NaN                          NaN                  NaN

   fwg_solar_hour_adjustment  fwg_diffuse_irradiation_model  fwg_add_uhi  \
0                        NaN                            NaN          NaN
1                        NaN                            NaN          NaN

   fwg_epw_original_lcz  fwg_target_uhi_lcz
0                   NaN                 NaN
1                   NaN                 NaN

[2 rows x 25 columns]

Step 3.3: Option C - Hybrid Approach (Load from Excel, then Modify)

You can also combine the two methods. Here, we load the runs from our Excel file and then programmatically add a new run to the DataFrame.

[9]:
first_gcm = list(DEFAULT_GLOBAL_GCMS)[0]
runs_from_excel_modified = runs_from_excel.copy()

# Add a new row (run) to the DataFrame we loaded from Excel.
runs_from_excel_modified.loc[2] = {
    'epw_paths': epw_files[1],
    'final_output_dir': 'results_using_excel/seville',
    'fwg_gcms': [first_gcm]
}

print("--- Final DataFrame for Execution ---")
runs_from_excel_modified
--- Final DataFrame for Execution ---
[9]:
epw_paths input_filename_pattern keyword_mapping final_output_dir output_filename_pattern scenario_mapping fwg_jar_path run_incomplete_files delete_temp_files temp_base_dir ... fwg_summer_sd_shift fwg_month_transition_hours fwg_use_multithreading fwg_interpolation_method_id fwg_limit_variables fwg_solar_hour_adjustment fwg_diffuse_irradiation_model fwg_add_uhi fwg_epw_original_lcz fwg_target_uhi_lcz
0 epws/wo_pattern/GBR_London.Gatwick.037760_IWEC... NaN NaN results_using_excel/london NaN NaN NaN NaN NaN NaN ... NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN
1 epws/wo_pattern/sevilla_in_this_one_the_uhi_is... NaN NaN results_using_excel/seville NaN NaN NaN NaN NaN NaN ... NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN
2 epws/wo_pattern\sevilla_in_this_one_the_uhi_is... NaN NaN results_using_excel/seville NaN NaN NaN NaN NaN NaN ... NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN

3 rows × 25 columns

[10]:
# Let's show only the columns we have modified
runs_from_excel_modified[key_columns]
[10]:
epw_paths final_output_dir fwg_gcms
0 epws/wo_pattern/GBR_London.Gatwick.037760_IWEC... results_using_excel/london [CanESM5]
1 epws/wo_pattern/sevilla_in_this_one_the_uhi_is... results_using_excel/seville [MIROC6]
2 epws/wo_pattern\sevilla_in_this_one_the_uhi_is... results_using_excel/seville [CAS_ESM2_0]

Step 4: Generate the Morphing Workflows and Execution Plan

This single method is the core of the planning phase. It takes your DataFrame of runs, applies all defaults, maps the file categories, and prepares all the underlying workflow instances.

Crucially, it also performs a robust validation check to prevent accidental file overwrites. It simulates all final output filenames and, if any collisions are found, it provides a comprehensive report of all conflicting files, making it much easier to debug your output_filename_pattern.

The final, detailed execution plan is stored in the iterator.morphing_workflows_plan_df attribute for you to review.

generate_morphing_workflows Parameters

This is the core planning method. It takes your DataFrame of runs and prepares everything for execution.

  • runs_df (pd.DataFrame): Required. The user’s DataFrame of runs, where each row represents a unique configuration.

  • input_filename_pattern (Optional[str], default: None): A regex pattern for filename mapping, applied as a default to every run unless overridden in the DataFrame.

  • keyword_mapping (Optional[Dict], default: None): A dictionary of keyword rules for filename mapping, applied as a default to every run unless overridden in the DataFrame.

  • raise_on_overwrite (bool, default: True): Controls the behavior when a filename collision is detected. If True (the default and recommended setting), the method will raise a ValueError to stop execution and prevent data loss. If False, it will only print a warning and allow the process to continue.

[11]:
# The mapping strategy is a static argument for the whole batch.
iterator.generate_morphing_workflows(
    runs_df=runs_from_excel_modified,
    keyword_mapping=mapping_rules
)
2025-09-29 09:58:27 - INFO - Generating detailed execution plan and preparing workflows...
2025-09-29 09:58:27 - INFO - --- Step 1: Mapping categories from filenames ---
2025-09-29 09:58:27 - INFO - Mapped 'epws/wo_pattern/GBR_London.Gatwick.037760_IWEC_uhi_type-2.epw': {'city': 'london', 'uhi': 'type-2'}
2025-09-29 09:58:27 - INFO - Category mapping complete.
2025-09-29 09:58:27 - INFO - --- Step 1: Mapping categories from filenames ---
2025-09-29 09:58:27 - INFO - Mapped 'epws/wo_pattern/sevilla_in_this_one_the_uhi_is_type-1.epw': {'city': 'seville', 'uhi': 'type-1'}
2025-09-29 09:58:27 - INFO - Category mapping complete.
2025-09-29 09:58:27 - INFO - --- Step 1: Mapping categories from filenames ---
2025-09-29 09:58:27 - INFO - Mapped 'epws/wo_pattern\sevilla_in_this_one_the_uhi_is_type-1.epw': {'city': 'seville', 'uhi': 'type-1'}
2025-09-29 09:58:27 - INFO - Category mapping complete.
2025-09-29 09:58:27 - INFO - Validating for potential filename overwrites...
2025-09-29 09:58:27 - INFO - Filename validation passed. No overwrites detected.
2025-09-29 09:58:27 - INFO - Preparing 3 workflow instances...
2025-09-29 09:58:27 - INFO - --- Step 1: Mapping categories from filenames ---
2025-09-29 09:58:27 - INFO - Mapped 'epws/wo_pattern/GBR_London.Gatwick.037760_IWEC_uhi_type-2.epw': {'city': 'london', 'uhi': 'type-2'}
2025-09-29 09:58:27 - INFO - Category mapping complete.
2025-09-29 09:58:27 - INFO - --- Step 2: Configuring and Previewing Morphing Plan ---
2025-09-29 09:58:27 - INFO - --- Step 1: Mapping categories from filenames ---

============================================================
          MORPHING CONFIGURATION & PREVIEW
============================================================
  - FWG JAR Path: D:\OneDrive - Universidad de Cádiz (uca.es)\Programas\FutureWeatherGenerator_v3.0.1.jar
  - Final Output Directory: D:\Python\pyfwg\pyfwg\tutorials\results_using_excel\london
  - EPWs to be Morphed (1 files):
    - GBR_London.Gatwick.037760_IWEC_uhi_type-2.epw

  For input file: GBR_London.Gatwick.037760_IWEC_uhi_type-2.epw
    -> Generated 'ssp126_2050.epw' will be moved to: D:\Python\pyfwg\pyfwg\tutorials\results_using_excel\london\london_type-2_gcm-['CanESM5']_ssp126_2050.epw
    -> Generated 'ssp245_2050.epw' will be moved to: D:\Python\pyfwg\pyfwg\tutorials\results_using_excel\london\london_type-2_gcm-['CanESM5']_ssp245_2050.epw
    -> Generated 'ssp370_2050.epw' will be moved to: D:\Python\pyfwg\pyfwg\tutorials\results_using_excel\london\london_type-2_gcm-['CanESM5']_ssp370_2050.epw
    -> Generated 'ssp585_2050.epw' will be moved to: D:\Python\pyfwg\pyfwg\tutorials\results_using_excel\london\london_type-2_gcm-['CanESM5']_ssp585_2050.epw
    -> Generated 'ssp126_2080.epw' will be moved to: D:\Python\pyfwg\pyfwg\tutorials\results_using_excel\london\london_type-2_gcm-['CanESM5']_ssp126_2080.epw
    -> Generated 'ssp245_2080.epw' will be moved to: D:\Python\pyfwg\pyfwg\tutorials\results_using_excel\london\london_type-2_gcm-['CanESM5']_ssp245_2080.epw
    -> Generated 'ssp370_2080.epw' will be moved to: D:\Python\pyfwg\pyfwg\tutorials\results_using_excel\london\london_type-2_gcm-['CanESM5']_ssp370_2080.epw
    -> Generated 'ssp585_2080.epw' will be moved to: D:\Python\pyfwg\pyfwg\tutorials\results_using_excel\london\london_type-2_gcm-['CanESM5']_ssp585_2080.epw
============================================================
Configuration set. Call execute_morphing() to start the process.
2025-09-29 09:58:27 - INFO - Mapped 'epws/wo_pattern/sevilla_in_this_one_the_uhi_is_type-1.epw': {'city': 'seville', 'uhi': 'type-1'}
2025-09-29 09:58:27 - INFO - Category mapping complete.
2025-09-29 09:58:27 - INFO - --- Step 2: Configuring and Previewing Morphing Plan ---
2025-09-29 09:58:27 - INFO - --- Step 1: Mapping categories from filenames ---
2025-09-29 09:58:27 - INFO - Mapped 'epws/wo_pattern\sevilla_in_this_one_the_uhi_is_type-1.epw': {'city': 'seville', 'uhi': 'type-1'}
2025-09-29 09:58:27 - INFO - Category mapping complete.
2025-09-29 09:58:27 - INFO - --- Step 2: Configuring and Previewing Morphing Plan ---
2025-09-29 09:58:27 - INFO - Execution plan generated and 3 workflows prepared.

============================================================
          MORPHING CONFIGURATION & PREVIEW
============================================================
  - FWG JAR Path: D:\OneDrive - Universidad de Cádiz (uca.es)\Programas\FutureWeatherGenerator_v3.0.1.jar
  - Final Output Directory: D:\Python\pyfwg\pyfwg\tutorials\results_using_excel\seville
  - EPWs to be Morphed (1 files):
    - sevilla_in_this_one_the_uhi_is_type-1.epw

  For input file: sevilla_in_this_one_the_uhi_is_type-1.epw
    -> Generated 'ssp126_2050.epw' will be moved to: D:\Python\pyfwg\pyfwg\tutorials\results_using_excel\seville\seville_type-1_gcm-['MIROC6']_ssp126_2050.epw
    -> Generated 'ssp245_2050.epw' will be moved to: D:\Python\pyfwg\pyfwg\tutorials\results_using_excel\seville\seville_type-1_gcm-['MIROC6']_ssp245_2050.epw
    -> Generated 'ssp370_2050.epw' will be moved to: D:\Python\pyfwg\pyfwg\tutorials\results_using_excel\seville\seville_type-1_gcm-['MIROC6']_ssp370_2050.epw
    -> Generated 'ssp585_2050.epw' will be moved to: D:\Python\pyfwg\pyfwg\tutorials\results_using_excel\seville\seville_type-1_gcm-['MIROC6']_ssp585_2050.epw
    -> Generated 'ssp126_2080.epw' will be moved to: D:\Python\pyfwg\pyfwg\tutorials\results_using_excel\seville\seville_type-1_gcm-['MIROC6']_ssp126_2080.epw
    -> Generated 'ssp245_2080.epw' will be moved to: D:\Python\pyfwg\pyfwg\tutorials\results_using_excel\seville\seville_type-1_gcm-['MIROC6']_ssp245_2080.epw
    -> Generated 'ssp370_2080.epw' will be moved to: D:\Python\pyfwg\pyfwg\tutorials\results_using_excel\seville\seville_type-1_gcm-['MIROC6']_ssp370_2080.epw
    -> Generated 'ssp585_2080.epw' will be moved to: D:\Python\pyfwg\pyfwg\tutorials\results_using_excel\seville\seville_type-1_gcm-['MIROC6']_ssp585_2080.epw
============================================================
Configuration set. Call execute_morphing() to start the process.

============================================================
          MORPHING CONFIGURATION & PREVIEW
============================================================
  - FWG JAR Path: D:\OneDrive - Universidad de Cádiz (uca.es)\Programas\FutureWeatherGenerator_v3.0.1.jar
  - Final Output Directory: D:\Python\pyfwg\pyfwg\tutorials\results_using_excel\seville
  - EPWs to be Morphed (1 files):
    - sevilla_in_this_one_the_uhi_is_type-1.epw

  For input file: sevilla_in_this_one_the_uhi_is_type-1.epw
    -> Generated 'ssp126_2050.epw' will be moved to: D:\Python\pyfwg\pyfwg\tutorials\results_using_excel\seville\seville_type-1_gcm-['CAS_ESM2_0']_ssp126_2050.epw
    -> Generated 'ssp245_2050.epw' will be moved to: D:\Python\pyfwg\pyfwg\tutorials\results_using_excel\seville\seville_type-1_gcm-['CAS_ESM2_0']_ssp245_2050.epw
    -> Generated 'ssp370_2050.epw' will be moved to: D:\Python\pyfwg\pyfwg\tutorials\results_using_excel\seville\seville_type-1_gcm-['CAS_ESM2_0']_ssp370_2050.epw
    -> Generated 'ssp585_2050.epw' will be moved to: D:\Python\pyfwg\pyfwg\tutorials\results_using_excel\seville\seville_type-1_gcm-['CAS_ESM2_0']_ssp585_2050.epw
    -> Generated 'ssp126_2080.epw' will be moved to: D:\Python\pyfwg\pyfwg\tutorials\results_using_excel\seville\seville_type-1_gcm-['CAS_ESM2_0']_ssp126_2080.epw
    -> Generated 'ssp245_2080.epw' will be moved to: D:\Python\pyfwg\pyfwg\tutorials\results_using_excel\seville\seville_type-1_gcm-['CAS_ESM2_0']_ssp245_2080.epw
    -> Generated 'ssp370_2080.epw' will be moved to: D:\Python\pyfwg\pyfwg\tutorials\results_using_excel\seville\seville_type-1_gcm-['CAS_ESM2_0']_ssp370_2080.epw
    -> Generated 'ssp585_2080.epw' will be moved to: D:\Python\pyfwg\pyfwg\tutorials\results_using_excel\seville\seville_type-1_gcm-['CAS_ESM2_0']_ssp585_2080.epw
============================================================
Configuration set. Call execute_morphing() to start the process.
[12]:
print("--- Detailed Execution Plan ---")
# Display key columns to verify the plan, including the new category columns.
display_cols = [
    'epw_paths',
    'final_output_dir',
    'fwg_gcms',
    'cat_city',
    'cat_uhi'
]
iterator.morphing_workflows_plan_df[display_cols]
--- Detailed Execution Plan ---
[12]:
epw_paths final_output_dir fwg_gcms cat_city cat_uhi
0 epws/wo_pattern/GBR_London.Gatwick.037760_IWEC... results_using_excel/london [CanESM5] [london] [type-2]
1 epws/wo_pattern/sevilla_in_this_one_the_uhi_is... results_using_excel/seville [MIROC6] [seville] [type-1]
2 epws/wo_pattern\sevilla_in_this_one_the_uhi_is... results_using_excel/seville [CAS_ESM2_0] [seville] [type-1]
[13]:
# At this point the default values have been applied, and therefore the plan can be fully checked before running the morphing
iterator.morphing_workflows_plan_df
[13]:
epw_paths input_filename_pattern keyword_mapping cat_city cat_uhi final_output_dir output_filename_pattern scenario_mapping fwg_jar_path run_incomplete_files ... fwg_summer_sd_shift fwg_month_transition_hours fwg_use_multithreading fwg_interpolation_method_id fwg_limit_variables fwg_solar_hour_adjustment fwg_diffuse_irradiation_model fwg_add_uhi fwg_epw_original_lcz fwg_target_uhi_lcz
0 epws/wo_pattern/GBR_London.Gatwick.037760_IWEC... None {'city': {'seville': ['sevilla', 'SVQ'], 'lond... [london] [type-2] results_using_excel/london {city}_{uhi}_gcm-{fwg_gcms}_{ssp}_{year} NaN D:\OneDrive - Universidad de Cádiz (uca.es)\Pr... False ... 0.0 72 True 0 True 1 1 True 2 3
1 epws/wo_pattern/sevilla_in_this_one_the_uhi_is... None {'city': {'seville': ['sevilla', 'SVQ'], 'lond... [seville] [type-1] results_using_excel/seville {city}_{uhi}_gcm-{fwg_gcms}_{ssp}_{year} NaN D:\OneDrive - Universidad de Cádiz (uca.es)\Pr... False ... 0.0 72 True 0 True 1 1 True 2 3
2 epws/wo_pattern\sevilla_in_this_one_the_uhi_is... None {'city': {'seville': ['sevilla', 'SVQ'], 'lond... [seville] [type-1] results_using_excel/seville {city}_{uhi}_gcm-{fwg_gcms}_{ssp}_{year} NaN D:\OneDrive - Universidad de Cádiz (uca.es)\Pr... False ... 0.0 72 True 0 True 1 1 True 2 3

3 rows × 27 columns

You can also inspect the prepared workflow instances themselves.

[14]:
print("\n--- Inspecting first prepared workflow ---")
if iterator.prepared_workflows:
    first_workflow = iterator.prepared_workflows[0]
    print(f"Is config valid? {first_workflow.is_config_valid}")
    print(f"Files to be morphed: {[os.path.basename(p) for p in first_workflow.epws_to_be_morphed]}")
else:
    print("No workflows were prepared, likely due to errors in the plan.")

--- Inspecting first prepared workflow ---
Is config valid? True
Files to be morphed: ['GBR_London.Gatwick.037760_IWEC_uhi_type-2.epw']

Step 5: Execute the Morphing Workflows

This is the final step. The run_morphing_workflows method takes no arguments to define the runs, as it simply executes the workflows that were prepared in the previous step.

run_morphing_workflows Parameters

  • show_tool_output (Optional[bool], default: None): A flag to globally override the console output setting for all workflows in this specific batch execution.

    • If set to True or False, it will force this behavior for all runs, ignoring the fwg_show_tool_output value in the plan.

    • If left as None (the default), each run will use the fwg_show_tool_output value that was defined for it in the execution plan.

[15]:
iterator.run_morphing_workflows(show_tool_output=False)
2025-09-29 09:58:27 - INFO - Starting execution of 3 prepared runs...
2025-09-29 09:58:27 - INFO - --- Running Run 1/3 ---
2025-09-29 09:58:27 - INFO - --- Step 4: Executing morphing workflow ---
2025-09-29 09:58:27 - INFO - Validating LCZ availability for GBR_London.Gatwick.037760_IWEC_uhi_type-2.epw...
2025-09-29 09:58:27 - INFO - Checking LCZ pair (Original: 2, Target: 3) availability for GBR_London.Gatwick.037760_IWEC_uhi_type-2.epw...
2025-09-29 09:58:27 - INFO - --- Applying UHI effect to GBR_London.Gatwick.037760_IWEC_uhi_type-2.epw ---
2025-09-29 09:58:27 - INFO - Executing command: java -cp "D:\OneDrive - Universidad de Cádiz (uca.es)\Programas\FutureWeatherGenerator_v3.0.1.jar" futureweathergenerator.UHI_Morph D:\Python\pyfwg\pyfwg\tutorials\epws\wo_pattern\GBR_London.Gatwick.037760_IWEC_uhi_type-2.epw C:\Users\sanga\AppData\Local\Temp\tmpab07k7qy/ true 2:3
2025-09-29 09:58:31 - INFO - UHI effect applied successfully.
2025-09-29 09:58:31 - INFO - LCZ pair (Original: 2, Target: 3) is available.
2025-09-29 09:58:31 - INFO - Copied input file to temporary directory: ./morphing_temp_results\GBR_London.Gatwick.037760_IWEC_uhi_type-2\GBR_London.Gatwick.037760_IWEC_uhi_type-2.epw

-------------------- Executing FWG for GBR_London.Gatwick.037760_IWEC_uhi_type-2.epw --------------------
  Full Command (for reference): java -cp "D:\OneDrive - Universidad de Cádiz (uca.es)\Programas\FutureWeatherGenerator_v3.0.1.jar" futureweathergenerator.Morph D:\Python\pyfwg\pyfwg\tutorials\epws\wo_pattern\GBR_London.Gatwick.037760_IWEC_uhi_type-2.epw CanESM5 1 0.0:0.0 72 D:\Python\pyfwg\pyfwg\tutorials\morphing_temp_results\GBR_London.Gatwick.037760_IWEC_uhi_type-2/ true 0 true 1 1 1:2:3
2025-09-29 09:59:04 - INFO - Processing generated files in: ./morphing_temp_results\GBR_London.Gatwick.037760_IWEC_uhi_type-2
2025-09-29 09:59:04 - INFO - Skipping auxiliary file: 'GBR_-_LONDON-GATWICK_CanESM5_ssp126_2050_GridPointVariables.csv'
2025-09-29 09:59:04 - INFO - Skipping auxiliary file: 'GBR_-_LONDON-GATWICK_CanESM5_ssp126_2080_GridPointVariables.csv'
2025-09-29 09:59:04 - INFO - Skipping auxiliary file: 'GBR_-_LONDON-GATWICK_CanESM5_ssp245_2050_GridPointVariables.csv'
2025-09-29 09:59:04 - INFO - Skipping auxiliary file: 'GBR_-_LONDON-GATWICK_CanESM5_ssp245_2080_GridPointVariables.csv'
2025-09-29 09:59:04 - INFO - Skipping auxiliary file: 'GBR_-_LONDON-GATWICK_CanESM5_ssp370_2050_GridPointVariables.csv'
2025-09-29 09:59:04 - INFO - Skipping auxiliary file: 'GBR_-_LONDON-GATWICK_CanESM5_ssp370_2080_GridPointVariables.csv'
2025-09-29 09:59:04 - INFO - Skipping auxiliary file: 'GBR_-_LONDON-GATWICK_CanESM5_ssp585_2050_GridPointVariables.csv'
2025-09-29 09:59:04 - INFO - Skipping auxiliary file: 'GBR_-_LONDON-GATWICK_CanESM5_ssp585_2080_GridPointVariables.csv'
2025-09-29 09:59:04 - INFO - Moving './morphing_temp_results\GBR_London.Gatwick.037760_IWEC_uhi_type-2\GBR_-_LONDON-GATWICK_Ensemble_ssp126_2050.epw' to 'results_using_excel/london\london_type-2_gcm-['CanESM5']_ssp126_2050.epw'
2025-09-29 09:59:04 - INFO - Moving './morphing_temp_results\GBR_London.Gatwick.037760_IWEC_uhi_type-2\GBR_-_LONDON-GATWICK_Ensemble_ssp126_2050.stat' to 'results_using_excel/london\london_type-2_gcm-['CanESM5']_ssp126_2050.stat'
2025-09-29 09:59:04 - INFO - Skipping auxiliary file: 'GBR_-_LONDON-GATWICK_Ensemble_ssp126_2050_ErrorsAndWarnings.log'
2025-09-29 09:59:04 - INFO - Skipping auxiliary file: 'GBR_-_LONDON-GATWICK_Ensemble_ssp126_2050_GridPointVariables.csv'
2025-09-29 09:59:04 - INFO - Skipping auxiliary file: 'GBR_-_LONDON-GATWICK_Ensemble_ssp126_2050_MorphedEPWsComparison.csv'
2025-09-29 09:59:04 - INFO - Moving './morphing_temp_results\GBR_London.Gatwick.037760_IWEC_uhi_type-2\GBR_-_LONDON-GATWICK_Ensemble_ssp126_2080.epw' to 'results_using_excel/london\london_type-2_gcm-['CanESM5']_ssp126_2080.epw'
2025-09-29 09:59:04 - INFO - Moving './morphing_temp_results\GBR_London.Gatwick.037760_IWEC_uhi_type-2\GBR_-_LONDON-GATWICK_Ensemble_ssp126_2080.stat' to 'results_using_excel/london\london_type-2_gcm-['CanESM5']_ssp126_2080.stat'
2025-09-29 09:59:04 - INFO - Skipping auxiliary file: 'GBR_-_LONDON-GATWICK_Ensemble_ssp126_2080_ErrorsAndWarnings.log'
2025-09-29 09:59:04 - INFO - Skipping auxiliary file: 'GBR_-_LONDON-GATWICK_Ensemble_ssp126_2080_GridPointVariables.csv'
2025-09-29 09:59:04 - INFO - Skipping auxiliary file: 'GBR_-_LONDON-GATWICK_Ensemble_ssp126_2080_MorphedEPWsComparison.csv'
2025-09-29 09:59:04 - INFO - Moving './morphing_temp_results\GBR_London.Gatwick.037760_IWEC_uhi_type-2\GBR_-_LONDON-GATWICK_Ensemble_ssp245_2050.epw' to 'results_using_excel/london\london_type-2_gcm-['CanESM5']_ssp245_2050.epw'
2025-09-29 09:59:04 - INFO - Moving './morphing_temp_results\GBR_London.Gatwick.037760_IWEC_uhi_type-2\GBR_-_LONDON-GATWICK_Ensemble_ssp245_2050.stat' to 'results_using_excel/london\london_type-2_gcm-['CanESM5']_ssp245_2050.stat'
2025-09-29 09:59:04 - INFO - Skipping auxiliary file: 'GBR_-_LONDON-GATWICK_Ensemble_ssp245_2050_ErrorsAndWarnings.log'
2025-09-29 09:59:04 - INFO - Skipping auxiliary file: 'GBR_-_LONDON-GATWICK_Ensemble_ssp245_2050_GridPointVariables.csv'
2025-09-29 09:59:04 - INFO - Skipping auxiliary file: 'GBR_-_LONDON-GATWICK_Ensemble_ssp245_2050_MorphedEPWsComparison.csv'
2025-09-29 09:59:04 - INFO - Moving './morphing_temp_results\GBR_London.Gatwick.037760_IWEC_uhi_type-2\GBR_-_LONDON-GATWICK_Ensemble_ssp245_2080.epw' to 'results_using_excel/london\london_type-2_gcm-['CanESM5']_ssp245_2080.epw'
2025-09-29 09:59:04 - INFO - Moving './morphing_temp_results\GBR_London.Gatwick.037760_IWEC_uhi_type-2\GBR_-_LONDON-GATWICK_Ensemble_ssp245_2080.stat' to 'results_using_excel/london\london_type-2_gcm-['CanESM5']_ssp245_2080.stat'
2025-09-29 09:59:04 - INFO - Skipping auxiliary file: 'GBR_-_LONDON-GATWICK_Ensemble_ssp245_2080_ErrorsAndWarnings.log'
2025-09-29 09:59:04 - INFO - Skipping auxiliary file: 'GBR_-_LONDON-GATWICK_Ensemble_ssp245_2080_GridPointVariables.csv'
2025-09-29 09:59:04 - INFO - Skipping auxiliary file: 'GBR_-_LONDON-GATWICK_Ensemble_ssp245_2080_MorphedEPWsComparison.csv'
2025-09-29 09:59:04 - INFO - Moving './morphing_temp_results\GBR_London.Gatwick.037760_IWEC_uhi_type-2\GBR_-_LONDON-GATWICK_Ensemble_ssp370_2050.epw' to 'results_using_excel/london\london_type-2_gcm-['CanESM5']_ssp370_2050.epw'
2025-09-29 09:59:04 - INFO - Moving './morphing_temp_results\GBR_London.Gatwick.037760_IWEC_uhi_type-2\GBR_-_LONDON-GATWICK_Ensemble_ssp370_2050.stat' to 'results_using_excel/london\london_type-2_gcm-['CanESM5']_ssp370_2050.stat'
2025-09-29 09:59:04 - INFO - Skipping auxiliary file: 'GBR_-_LONDON-GATWICK_Ensemble_ssp370_2050_ErrorsAndWarnings.log'
2025-09-29 09:59:04 - INFO - Skipping auxiliary file: 'GBR_-_LONDON-GATWICK_Ensemble_ssp370_2050_GridPointVariables.csv'
2025-09-29 09:59:04 - INFO - Skipping auxiliary file: 'GBR_-_LONDON-GATWICK_Ensemble_ssp370_2050_MorphedEPWsComparison.csv'
2025-09-29 09:59:04 - INFO - Moving './morphing_temp_results\GBR_London.Gatwick.037760_IWEC_uhi_type-2\GBR_-_LONDON-GATWICK_Ensemble_ssp370_2080.epw' to 'results_using_excel/london\london_type-2_gcm-['CanESM5']_ssp370_2080.epw'
2025-09-29 09:59:04 - INFO - Moving './morphing_temp_results\GBR_London.Gatwick.037760_IWEC_uhi_type-2\GBR_-_LONDON-GATWICK_Ensemble_ssp370_2080.stat' to 'results_using_excel/london\london_type-2_gcm-['CanESM5']_ssp370_2080.stat'
2025-09-29 09:59:04 - INFO - Skipping auxiliary file: 'GBR_-_LONDON-GATWICK_Ensemble_ssp370_2080_ErrorsAndWarnings.log'
2025-09-29 09:59:04 - INFO - Skipping auxiliary file: 'GBR_-_LONDON-GATWICK_Ensemble_ssp370_2080_GridPointVariables.csv'
2025-09-29 09:59:04 - INFO - Skipping auxiliary file: 'GBR_-_LONDON-GATWICK_Ensemble_ssp370_2080_MorphedEPWsComparison.csv'
2025-09-29 09:59:04 - INFO - Moving './morphing_temp_results\GBR_London.Gatwick.037760_IWEC_uhi_type-2\GBR_-_LONDON-GATWICK_Ensemble_ssp585_2050.epw' to 'results_using_excel/london\london_type-2_gcm-['CanESM5']_ssp585_2050.epw'
2025-09-29 09:59:04 - INFO - Moving './morphing_temp_results\GBR_London.Gatwick.037760_IWEC_uhi_type-2\GBR_-_LONDON-GATWICK_Ensemble_ssp585_2050.stat' to 'results_using_excel/london\london_type-2_gcm-['CanESM5']_ssp585_2050.stat'
2025-09-29 09:59:04 - INFO - Skipping auxiliary file: 'GBR_-_LONDON-GATWICK_Ensemble_ssp585_2050_ErrorsAndWarnings.log'
2025-09-29 09:59:04 - INFO - Skipping auxiliary file: 'GBR_-_LONDON-GATWICK_Ensemble_ssp585_2050_GridPointVariables.csv'
2025-09-29 09:59:04 - INFO - Skipping auxiliary file: 'GBR_-_LONDON-GATWICK_Ensemble_ssp585_2050_MorphedEPWsComparison.csv'
2025-09-29 09:59:04 - INFO - Moving './morphing_temp_results\GBR_London.Gatwick.037760_IWEC_uhi_type-2\GBR_-_LONDON-GATWICK_Ensemble_ssp585_2080.epw' to 'results_using_excel/london\london_type-2_gcm-['CanESM5']_ssp585_2080.epw'
2025-09-29 09:59:04 - INFO - Moving './morphing_temp_results\GBR_London.Gatwick.037760_IWEC_uhi_type-2\GBR_-_LONDON-GATWICK_Ensemble_ssp585_2080.stat' to 'results_using_excel/london\london_type-2_gcm-['CanESM5']_ssp585_2080.stat'
2025-09-29 09:59:04 - INFO - Skipping auxiliary file: 'GBR_-_LONDON-GATWICK_Ensemble_ssp585_2080_ErrorsAndWarnings.log'
2025-09-29 09:59:04 - INFO - Skipping auxiliary file: 'GBR_-_LONDON-GATWICK_Ensemble_ssp585_2080_GridPointVariables.csv'
2025-09-29 09:59:04 - INFO - Skipping auxiliary file: 'GBR_-_LONDON-GATWICK_Ensemble_ssp585_2080_MorphedEPWsComparison.csv'
2025-09-29 09:59:04 - INFO - Deleting temporary directory: ./morphing_temp_results\GBR_London.Gatwick.037760_IWEC_uhi_type-2
2025-09-29 09:59:04 - INFO - Morphing workflow finished.
2025-09-29 09:59:04 - INFO - --- Running Run 2/3 ---
2025-09-29 09:59:04 - INFO - --- Step 4: Executing morphing workflow ---
2025-09-29 09:59:04 - INFO - Validating LCZ availability for sevilla_in_this_one_the_uhi_is_type-1.epw...
2025-09-29 09:59:04 - INFO - Checking LCZ pair (Original: 2, Target: 3) availability for sevilla_in_this_one_the_uhi_is_type-1.epw...
2025-09-29 09:59:04 - INFO - --- Applying UHI effect to sevilla_in_this_one_the_uhi_is_type-1.epw ---
2025-09-29 09:59:04 - INFO - Executing command: java -cp "D:\OneDrive - Universidad de Cádiz (uca.es)\Programas\FutureWeatherGenerator_v3.0.1.jar" futureweathergenerator.UHI_Morph D:\Python\pyfwg\pyfwg\tutorials\epws\wo_pattern\sevilla_in_this_one_the_uhi_is_type-1.epw C:\Users\sanga\AppData\Local\Temp\tmpcvlq_573/ true 2:3
2025-09-29 09:59:09 - INFO - UHI effect applied successfully.
2025-09-29 09:59:09 - INFO - LCZ pair (Original: 2, Target: 3) is available.
2025-09-29 09:59:09 - INFO - Copied input file to temporary directory: ./morphing_temp_results\sevilla_in_this_one_the_uhi_is_type-1\sevilla_in_this_one_the_uhi_is_type-1.epw

-------------------- Executing FWG for sevilla_in_this_one_the_uhi_is_type-1.epw --------------------
  Full Command (for reference): java -cp "D:\OneDrive - Universidad de Cádiz (uca.es)\Programas\FutureWeatherGenerator_v3.0.1.jar" futureweathergenerator.Morph D:\Python\pyfwg\pyfwg\tutorials\epws\wo_pattern\sevilla_in_this_one_the_uhi_is_type-1.epw MIROC6 1 0.0:0.0 72 D:\Python\pyfwg\pyfwg\tutorials\morphing_temp_results\sevilla_in_this_one_the_uhi_is_type-1/ true 0 true 1 1 1:2:3
2025-09-29 09:59:46 - INFO - Processing generated files in: ./morphing_temp_results\sevilla_in_this_one_the_uhi_is_type-1
2025-09-29 09:59:46 - INFO - Moving './morphing_temp_results\sevilla_in_this_one_the_uhi_is_type-1\ESP_-_SEVILLA_Ensemble_ssp126_2050.epw' to 'results_using_excel/seville\seville_type-1_gcm-['MIROC6']_ssp126_2050.epw'
2025-09-29 09:59:46 - INFO - Moving './morphing_temp_results\sevilla_in_this_one_the_uhi_is_type-1\ESP_-_SEVILLA_Ensemble_ssp126_2050.stat' to 'results_using_excel/seville\seville_type-1_gcm-['MIROC6']_ssp126_2050.stat'
2025-09-29 09:59:46 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp126_2050_ErrorsAndWarnings.log'
2025-09-29 09:59:46 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp126_2050_GridPointVariables.csv'
2025-09-29 09:59:46 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp126_2050_MorphedEPWsComparison.csv'
2025-09-29 09:59:46 - INFO - Moving './morphing_temp_results\sevilla_in_this_one_the_uhi_is_type-1\ESP_-_SEVILLA_Ensemble_ssp126_2080.epw' to 'results_using_excel/seville\seville_type-1_gcm-['MIROC6']_ssp126_2080.epw'
2025-09-29 09:59:46 - INFO - Moving './morphing_temp_results\sevilla_in_this_one_the_uhi_is_type-1\ESP_-_SEVILLA_Ensemble_ssp126_2080.stat' to 'results_using_excel/seville\seville_type-1_gcm-['MIROC6']_ssp126_2080.stat'
2025-09-29 09:59:46 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp126_2080_ErrorsAndWarnings.log'
2025-09-29 09:59:46 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp126_2080_GridPointVariables.csv'
2025-09-29 09:59:46 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp126_2080_MorphedEPWsComparison.csv'
2025-09-29 09:59:46 - INFO - Moving './morphing_temp_results\sevilla_in_this_one_the_uhi_is_type-1\ESP_-_SEVILLA_Ensemble_ssp245_2050.epw' to 'results_using_excel/seville\seville_type-1_gcm-['MIROC6']_ssp245_2050.epw'
2025-09-29 09:59:46 - INFO - Moving './morphing_temp_results\sevilla_in_this_one_the_uhi_is_type-1\ESP_-_SEVILLA_Ensemble_ssp245_2050.stat' to 'results_using_excel/seville\seville_type-1_gcm-['MIROC6']_ssp245_2050.stat'
2025-09-29 09:59:46 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp245_2050_ErrorsAndWarnings.log'
2025-09-29 09:59:46 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp245_2050_GridPointVariables.csv'
2025-09-29 09:59:46 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp245_2050_MorphedEPWsComparison.csv'
2025-09-29 09:59:46 - INFO - Moving './morphing_temp_results\sevilla_in_this_one_the_uhi_is_type-1\ESP_-_SEVILLA_Ensemble_ssp245_2080.epw' to 'results_using_excel/seville\seville_type-1_gcm-['MIROC6']_ssp245_2080.epw'
2025-09-29 09:59:46 - INFO - Moving './morphing_temp_results\sevilla_in_this_one_the_uhi_is_type-1\ESP_-_SEVILLA_Ensemble_ssp245_2080.stat' to 'results_using_excel/seville\seville_type-1_gcm-['MIROC6']_ssp245_2080.stat'
2025-09-29 09:59:46 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp245_2080_ErrorsAndWarnings.log'
2025-09-29 09:59:46 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp245_2080_GridPointVariables.csv'
2025-09-29 09:59:46 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp245_2080_MorphedEPWsComparison.csv'
2025-09-29 09:59:46 - INFO - Moving './morphing_temp_results\sevilla_in_this_one_the_uhi_is_type-1\ESP_-_SEVILLA_Ensemble_ssp370_2050.epw' to 'results_using_excel/seville\seville_type-1_gcm-['MIROC6']_ssp370_2050.epw'
2025-09-29 09:59:46 - INFO - Moving './morphing_temp_results\sevilla_in_this_one_the_uhi_is_type-1\ESP_-_SEVILLA_Ensemble_ssp370_2050.stat' to 'results_using_excel/seville\seville_type-1_gcm-['MIROC6']_ssp370_2050.stat'
2025-09-29 09:59:46 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp370_2050_ErrorsAndWarnings.log'
2025-09-29 09:59:46 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp370_2050_GridPointVariables.csv'
2025-09-29 09:59:46 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp370_2050_MorphedEPWsComparison.csv'
2025-09-29 09:59:46 - INFO - Moving './morphing_temp_results\sevilla_in_this_one_the_uhi_is_type-1\ESP_-_SEVILLA_Ensemble_ssp370_2080.epw' to 'results_using_excel/seville\seville_type-1_gcm-['MIROC6']_ssp370_2080.epw'
2025-09-29 09:59:46 - INFO - Moving './morphing_temp_results\sevilla_in_this_one_the_uhi_is_type-1\ESP_-_SEVILLA_Ensemble_ssp370_2080.stat' to 'results_using_excel/seville\seville_type-1_gcm-['MIROC6']_ssp370_2080.stat'
2025-09-29 09:59:46 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp370_2080_ErrorsAndWarnings.log'
2025-09-29 09:59:46 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp370_2080_GridPointVariables.csv'
2025-09-29 09:59:46 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp370_2080_MorphedEPWsComparison.csv'
2025-09-29 09:59:46 - INFO - Moving './morphing_temp_results\sevilla_in_this_one_the_uhi_is_type-1\ESP_-_SEVILLA_Ensemble_ssp585_2050.epw' to 'results_using_excel/seville\seville_type-1_gcm-['MIROC6']_ssp585_2050.epw'
2025-09-29 09:59:46 - INFO - Moving './morphing_temp_results\sevilla_in_this_one_the_uhi_is_type-1\ESP_-_SEVILLA_Ensemble_ssp585_2050.stat' to 'results_using_excel/seville\seville_type-1_gcm-['MIROC6']_ssp585_2050.stat'
2025-09-29 09:59:46 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp585_2050_ErrorsAndWarnings.log'
2025-09-29 09:59:46 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp585_2050_GridPointVariables.csv'
2025-09-29 09:59:46 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp585_2050_MorphedEPWsComparison.csv'
2025-09-29 09:59:46 - INFO - Moving './morphing_temp_results\sevilla_in_this_one_the_uhi_is_type-1\ESP_-_SEVILLA_Ensemble_ssp585_2080.epw' to 'results_using_excel/seville\seville_type-1_gcm-['MIROC6']_ssp585_2080.epw'
2025-09-29 09:59:46 - INFO - Moving './morphing_temp_results\sevilla_in_this_one_the_uhi_is_type-1\ESP_-_SEVILLA_Ensemble_ssp585_2080.stat' to 'results_using_excel/seville\seville_type-1_gcm-['MIROC6']_ssp585_2080.stat'
2025-09-29 09:59:46 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp585_2080_ErrorsAndWarnings.log'
2025-09-29 09:59:46 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp585_2080_GridPointVariables.csv'
2025-09-29 09:59:46 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp585_2080_MorphedEPWsComparison.csv'
2025-09-29 09:59:46 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_MIROC6_ssp126_2050_GridPointVariables.csv'
2025-09-29 09:59:46 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_MIROC6_ssp126_2080_GridPointVariables.csv'
2025-09-29 09:59:46 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_MIROC6_ssp245_2050_GridPointVariables.csv'
2025-09-29 09:59:46 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_MIROC6_ssp245_2080_GridPointVariables.csv'
2025-09-29 09:59:46 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_MIROC6_ssp370_2050_GridPointVariables.csv'
2025-09-29 09:59:46 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_MIROC6_ssp370_2080_GridPointVariables.csv'
2025-09-29 09:59:46 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_MIROC6_ssp585_2050_GridPointVariables.csv'
2025-09-29 09:59:46 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_MIROC6_ssp585_2080_GridPointVariables.csv'
2025-09-29 09:59:46 - INFO - Deleting temporary directory: ./morphing_temp_results\sevilla_in_this_one_the_uhi_is_type-1
2025-09-29 09:59:46 - INFO - Morphing workflow finished.
2025-09-29 09:59:46 - INFO - --- Running Run 3/3 ---
2025-09-29 09:59:46 - INFO - --- Step 4: Executing morphing workflow ---
2025-09-29 09:59:46 - INFO - Validating LCZ availability for sevilla_in_this_one_the_uhi_is_type-1.epw...
2025-09-29 09:59:46 - INFO - Checking LCZ pair (Original: 2, Target: 3) availability for sevilla_in_this_one_the_uhi_is_type-1.epw...
2025-09-29 09:59:46 - INFO - --- Applying UHI effect to sevilla_in_this_one_the_uhi_is_type-1.epw ---
2025-09-29 09:59:46 - INFO - Executing command: java -cp "D:\OneDrive - Universidad de Cádiz (uca.es)\Programas\FutureWeatherGenerator_v3.0.1.jar" futureweathergenerator.UHI_Morph D:\Python\pyfwg\pyfwg\tutorials\epws\wo_pattern\sevilla_in_this_one_the_uhi_is_type-1.epw C:\Users\sanga\AppData\Local\Temp\tmpjo7t4sry/ true 2:3
2025-09-29 09:59:50 - INFO - UHI effect applied successfully.
2025-09-29 09:59:50 - INFO - LCZ pair (Original: 2, Target: 3) is available.
2025-09-29 09:59:50 - INFO - Copied input file to temporary directory: ./morphing_temp_results\sevilla_in_this_one_the_uhi_is_type-1\sevilla_in_this_one_the_uhi_is_type-1.epw

-------------------- Executing FWG for sevilla_in_this_one_the_uhi_is_type-1.epw --------------------
  Full Command (for reference): java -cp "D:\OneDrive - Universidad de Cádiz (uca.es)\Programas\FutureWeatherGenerator_v3.0.1.jar" futureweathergenerator.Morph D:\Python\pyfwg\pyfwg\tutorials\epws\wo_pattern\sevilla_in_this_one_the_uhi_is_type-1.epw CAS_ESM2_0 1 0.0:0.0 72 D:\Python\pyfwg\pyfwg\tutorials\morphing_temp_results\sevilla_in_this_one_the_uhi_is_type-1/ true 0 true 1 1 1:2:3
2025-09-29 10:00:26 - INFO - Processing generated files in: ./morphing_temp_results\sevilla_in_this_one_the_uhi_is_type-1
2025-09-29 10:00:26 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_CAS_ESM2_0_ssp126_2050_GridPointVariables.csv'
2025-09-29 10:00:26 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_CAS_ESM2_0_ssp126_2080_GridPointVariables.csv'
2025-09-29 10:00:26 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_CAS_ESM2_0_ssp245_2050_GridPointVariables.csv'
2025-09-29 10:00:26 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_CAS_ESM2_0_ssp245_2080_GridPointVariables.csv'
2025-09-29 10:00:26 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_CAS_ESM2_0_ssp370_2050_GridPointVariables.csv'
2025-09-29 10:00:26 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_CAS_ESM2_0_ssp370_2080_GridPointVariables.csv'
2025-09-29 10:00:26 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_CAS_ESM2_0_ssp585_2050_GridPointVariables.csv'
2025-09-29 10:00:26 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_CAS_ESM2_0_ssp585_2080_GridPointVariables.csv'
2025-09-29 10:00:26 - INFO - Moving './morphing_temp_results\sevilla_in_this_one_the_uhi_is_type-1\ESP_-_SEVILLA_Ensemble_ssp126_2050.epw' to 'results_using_excel/seville\seville_type-1_gcm-['CAS_ESM2_0']_ssp126_2050.epw'
2025-09-29 10:00:26 - INFO - Moving './morphing_temp_results\sevilla_in_this_one_the_uhi_is_type-1\ESP_-_SEVILLA_Ensemble_ssp126_2050.stat' to 'results_using_excel/seville\seville_type-1_gcm-['CAS_ESM2_0']_ssp126_2050.stat'
2025-09-29 10:00:26 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp126_2050_ErrorsAndWarnings.log'
2025-09-29 10:00:26 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp126_2050_GridPointVariables.csv'
2025-09-29 10:00:26 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp126_2050_MorphedEPWsComparison.csv'
2025-09-29 10:00:26 - INFO - Moving './morphing_temp_results\sevilla_in_this_one_the_uhi_is_type-1\ESP_-_SEVILLA_Ensemble_ssp126_2080.epw' to 'results_using_excel/seville\seville_type-1_gcm-['CAS_ESM2_0']_ssp126_2080.epw'
2025-09-29 10:00:26 - INFO - Moving './morphing_temp_results\sevilla_in_this_one_the_uhi_is_type-1\ESP_-_SEVILLA_Ensemble_ssp126_2080.stat' to 'results_using_excel/seville\seville_type-1_gcm-['CAS_ESM2_0']_ssp126_2080.stat'
2025-09-29 10:00:26 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp126_2080_ErrorsAndWarnings.log'
2025-09-29 10:00:26 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp126_2080_GridPointVariables.csv'
2025-09-29 10:00:26 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp126_2080_MorphedEPWsComparison.csv'
2025-09-29 10:00:26 - INFO - Moving './morphing_temp_results\sevilla_in_this_one_the_uhi_is_type-1\ESP_-_SEVILLA_Ensemble_ssp245_2050.epw' to 'results_using_excel/seville\seville_type-1_gcm-['CAS_ESM2_0']_ssp245_2050.epw'
2025-09-29 10:00:26 - INFO - Moving './morphing_temp_results\sevilla_in_this_one_the_uhi_is_type-1\ESP_-_SEVILLA_Ensemble_ssp245_2050.stat' to 'results_using_excel/seville\seville_type-1_gcm-['CAS_ESM2_0']_ssp245_2050.stat'
2025-09-29 10:00:26 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp245_2050_ErrorsAndWarnings.log'
2025-09-29 10:00:26 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp245_2050_GridPointVariables.csv'
2025-09-29 10:00:26 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp245_2050_MorphedEPWsComparison.csv'
2025-09-29 10:00:26 - INFO - Moving './morphing_temp_results\sevilla_in_this_one_the_uhi_is_type-1\ESP_-_SEVILLA_Ensemble_ssp245_2080.epw' to 'results_using_excel/seville\seville_type-1_gcm-['CAS_ESM2_0']_ssp245_2080.epw'
2025-09-29 10:00:26 - INFO - Moving './morphing_temp_results\sevilla_in_this_one_the_uhi_is_type-1\ESP_-_SEVILLA_Ensemble_ssp245_2080.stat' to 'results_using_excel/seville\seville_type-1_gcm-['CAS_ESM2_0']_ssp245_2080.stat'
2025-09-29 10:00:26 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp245_2080_ErrorsAndWarnings.log'
2025-09-29 10:00:26 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp245_2080_GridPointVariables.csv'
2025-09-29 10:00:26 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp245_2080_MorphedEPWsComparison.csv'
2025-09-29 10:00:26 - INFO - Moving './morphing_temp_results\sevilla_in_this_one_the_uhi_is_type-1\ESP_-_SEVILLA_Ensemble_ssp370_2050.epw' to 'results_using_excel/seville\seville_type-1_gcm-['CAS_ESM2_0']_ssp370_2050.epw'
2025-09-29 10:00:26 - INFO - Moving './morphing_temp_results\sevilla_in_this_one_the_uhi_is_type-1\ESP_-_SEVILLA_Ensemble_ssp370_2050.stat' to 'results_using_excel/seville\seville_type-1_gcm-['CAS_ESM2_0']_ssp370_2050.stat'
2025-09-29 10:00:26 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp370_2050_ErrorsAndWarnings.log'
2025-09-29 10:00:26 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp370_2050_GridPointVariables.csv'
2025-09-29 10:00:26 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp370_2050_MorphedEPWsComparison.csv'
2025-09-29 10:00:26 - INFO - Moving './morphing_temp_results\sevilla_in_this_one_the_uhi_is_type-1\ESP_-_SEVILLA_Ensemble_ssp370_2080.epw' to 'results_using_excel/seville\seville_type-1_gcm-['CAS_ESM2_0']_ssp370_2080.epw'
2025-09-29 10:00:26 - INFO - Moving './morphing_temp_results\sevilla_in_this_one_the_uhi_is_type-1\ESP_-_SEVILLA_Ensemble_ssp370_2080.stat' to 'results_using_excel/seville\seville_type-1_gcm-['CAS_ESM2_0']_ssp370_2080.stat'
2025-09-29 10:00:26 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp370_2080_ErrorsAndWarnings.log'
2025-09-29 10:00:26 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp370_2080_GridPointVariables.csv'
2025-09-29 10:00:26 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp370_2080_MorphedEPWsComparison.csv'
2025-09-29 10:00:26 - INFO - Moving './morphing_temp_results\sevilla_in_this_one_the_uhi_is_type-1\ESP_-_SEVILLA_Ensemble_ssp585_2050.epw' to 'results_using_excel/seville\seville_type-1_gcm-['CAS_ESM2_0']_ssp585_2050.epw'
2025-09-29 10:00:26 - INFO - Moving './morphing_temp_results\sevilla_in_this_one_the_uhi_is_type-1\ESP_-_SEVILLA_Ensemble_ssp585_2050.stat' to 'results_using_excel/seville\seville_type-1_gcm-['CAS_ESM2_0']_ssp585_2050.stat'
2025-09-29 10:00:26 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp585_2050_ErrorsAndWarnings.log'
2025-09-29 10:00:26 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp585_2050_GridPointVariables.csv'
2025-09-29 10:00:26 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp585_2050_MorphedEPWsComparison.csv'
2025-09-29 10:00:26 - INFO - Moving './morphing_temp_results\sevilla_in_this_one_the_uhi_is_type-1\ESP_-_SEVILLA_Ensemble_ssp585_2080.epw' to 'results_using_excel/seville\seville_type-1_gcm-['CAS_ESM2_0']_ssp585_2080.epw'
2025-09-29 10:00:26 - INFO - Moving './morphing_temp_results\sevilla_in_this_one_the_uhi_is_type-1\ESP_-_SEVILLA_Ensemble_ssp585_2080.stat' to 'results_using_excel/seville\seville_type-1_gcm-['CAS_ESM2_0']_ssp585_2080.stat'
2025-09-29 10:00:26 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp585_2080_ErrorsAndWarnings.log'
2025-09-29 10:00:26 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp585_2080_GridPointVariables.csv'
2025-09-29 10:00:26 - INFO - Skipping auxiliary file: 'ESP_-_SEVILLA_Ensemble_ssp585_2080_MorphedEPWsComparison.csv'
2025-09-29 10:00:26 - INFO - Deleting temporary directory: ./morphing_temp_results\sevilla_in_this_one_the_uhi_is_type-1
2025-09-29 10:00:26 - INFO - Morphing workflow finished.
2025-09-29 10:00:26 - INFO - Batch run complete.

Let’s have a look at the output folders.

[16]:
output_dirs = list(set([i for i in iterator.morphing_workflows_plan_df['final_output_dir']]))
output_dirs
[16]:
['results_using_excel/london', 'results_using_excel/seville']

First, the one for the london epw

[17]:
[i for i in os.listdir(output_dirs[0])]
[17]:
["london_type-2_gcm-['CanESM5']_ssp126_2050.epw",
 "london_type-2_gcm-['CanESM5']_ssp126_2050.stat",
 "london_type-2_gcm-['CanESM5']_ssp126_2080.epw",
 "london_type-2_gcm-['CanESM5']_ssp126_2080.stat",
 "london_type-2_gcm-['CanESM5']_ssp245_2050.epw",
 "london_type-2_gcm-['CanESM5']_ssp245_2050.stat",
 "london_type-2_gcm-['CanESM5']_ssp245_2080.epw",
 "london_type-2_gcm-['CanESM5']_ssp245_2080.stat",
 "london_type-2_gcm-['CanESM5']_ssp370_2050.epw",
 "london_type-2_gcm-['CanESM5']_ssp370_2050.stat",
 "london_type-2_gcm-['CanESM5']_ssp370_2080.epw",
 "london_type-2_gcm-['CanESM5']_ssp370_2080.stat",
 "london_type-2_gcm-['CanESM5']_ssp585_2050.epw",
 "london_type-2_gcm-['CanESM5']_ssp585_2050.stat",
 "london_type-2_gcm-['CanESM5']_ssp585_2080.epw",
 "london_type-2_gcm-['CanESM5']_ssp585_2080.stat"]

And second, the one for the seville epw

[18]:
[i for i in os.listdir(output_dirs[1])]
[18]:
["seville_type-1_gcm-['CAS_ESM2_0']_ssp126_2050.epw",
 "seville_type-1_gcm-['CAS_ESM2_0']_ssp126_2050.stat",
 "seville_type-1_gcm-['CAS_ESM2_0']_ssp126_2080.epw",
 "seville_type-1_gcm-['CAS_ESM2_0']_ssp126_2080.stat",
 "seville_type-1_gcm-['CAS_ESM2_0']_ssp245_2050.epw",
 "seville_type-1_gcm-['CAS_ESM2_0']_ssp245_2050.stat",
 "seville_type-1_gcm-['CAS_ESM2_0']_ssp245_2080.epw",
 "seville_type-1_gcm-['CAS_ESM2_0']_ssp245_2080.stat",
 "seville_type-1_gcm-['CAS_ESM2_0']_ssp370_2050.epw",
 "seville_type-1_gcm-['CAS_ESM2_0']_ssp370_2050.stat",
 "seville_type-1_gcm-['CAS_ESM2_0']_ssp370_2080.epw",
 "seville_type-1_gcm-['CAS_ESM2_0']_ssp370_2080.stat",
 "seville_type-1_gcm-['CAS_ESM2_0']_ssp585_2050.epw",
 "seville_type-1_gcm-['CAS_ESM2_0']_ssp585_2050.stat",
 "seville_type-1_gcm-['CAS_ESM2_0']_ssp585_2080.epw",
 "seville_type-1_gcm-['CAS_ESM2_0']_ssp585_2080.stat",
 "seville_type-1_gcm-['MIROC6']_ssp126_2050.epw",
 "seville_type-1_gcm-['MIROC6']_ssp126_2050.stat",
 "seville_type-1_gcm-['MIROC6']_ssp126_2080.epw",
 "seville_type-1_gcm-['MIROC6']_ssp126_2080.stat",
 "seville_type-1_gcm-['MIROC6']_ssp245_2050.epw",
 "seville_type-1_gcm-['MIROC6']_ssp245_2050.stat",
 "seville_type-1_gcm-['MIROC6']_ssp245_2080.epw",
 "seville_type-1_gcm-['MIROC6']_ssp245_2080.stat",
 "seville_type-1_gcm-['MIROC6']_ssp370_2050.epw",
 "seville_type-1_gcm-['MIROC6']_ssp370_2050.stat",
 "seville_type-1_gcm-['MIROC6']_ssp370_2080.epw",
 "seville_type-1_gcm-['MIROC6']_ssp370_2080.stat",
 "seville_type-1_gcm-['MIROC6']_ssp585_2050.epw",
 "seville_type-1_gcm-['MIROC6']_ssp585_2050.stat",
 "seville_type-1_gcm-['MIROC6']_ssp585_2080.epw",
 "seville_type-1_gcm-['MIROC6']_ssp585_2080.stat"]

Let’s delete the files we have generated:

[19]:
import shutil
for output_dir in output_dirs:
    shutil.rmtree(output_dir)