accim.data package

Subpackages

Submodules

accim.data.morphing module

accim.data.morphing.morph_epws(fwg_path: str, epw_filepaths: any = 'all', delete_morphing_files: bool = True, verbose: bool = False, fwg_options_gcms: str | None = None, fwg_options_ensemble: int = 1, fwg_options_month_transition_hours: int = 72, fwg_options_do_multithread_computation: bool = True, fwg_options_interpolation_method_id: int = 0, fwg_options_do_limit_variables: bool = True)[source]

This function is a wrapper for the use of the FutureWeatherGenerator tool (https://future-weather-generator.adai.pt/), developed by Eugènio Rodrigues et al., in command line. It will move the epws in the working directory to a folder with the same name, will morph them within their respective directories, then will rename them using the original epw filename with the suffix depending on the scenario (e.j. the future scenarios for Granada.epw will be Granada_ssp126_2050.epw, Granada_ssp126_2080.epw, etc.) and move them back to the parent directory. If requested, the files generated from the moprhing process will be deleted.

Parameters:
  • fwg_path – The path to the FutureWeatherGenerator tool.

  • epw_filepaths – A list of epw filenames to be morphed.

  • delete_morphing_files – True to delete all files resulting from the morphing process except .epw files.

  • verbose – True to print on screen the performed actions.

  • fwg_options_gcms – The GCMs separated by a comma (without white space).

  • fwg_options_ensemble – Option to create an ensemble from the selected models: 0 is no, 1 is yes.

  • fwg_options_month_transition_hours – the number of hours to smooth the transition between months: 0 to 336 hours.

  • fwg_options_do_multithread_computation – True to do the computations in multithread.

  • fwg_options_interpolation_method_id – Selects the grid method: 0 – bilinear interpolation, 1 – an average of the four nearest points; 2 – nearest point.

  • fwg_options_do_limit_variables – True to bound each generated variable to its physical limits

accim.data.preprocessing module

Module contents