rwgen.WeatherGenerator.initialise_rainfall_model

WeatherGenerator.initialise_rainfall_model(input_timeseries=None, point_metadata=None, season_definitions='monthly', intensity_distribution='exponential', statistic_definitions=None)

Initialise rainfall model.

Parameters:
  • input_timeseries (str) – Path to file containing timeseries data (for point model) or folder containing timeseries data files (for spatial model). Needed if running pre-processing or fitting steps.

  • point_metadata (pandas.DataFrame or str) – Metadata (or path to metadata file) on point (site/gauge) locations to use for fitting, simulation and/or evaluation for a spatial model only. See Notes for details.

  • season_definitions (str, list or dict) – The model works on a monthly basis by default, but this argument allows for user-defined seasons (see Notes).

  • intensity_distribution (str) – Flag to indicate the type of probability distribution for raincell intensities. Defaults to 'exponential' (with 'weibull' also available currently).

  • statistic_definitions (pandas.DataFrame or str) – Definitions (descriptions) of statistics to use in fitting and/or evaluation (or path to file of definitions). See Notes for explanation of format.