antupy.tsg.weather.WeatherMC#

class antupy.tsg.weather.WeatherMC(dataset: str = 'meteonorm', location: str | Location = <factory>, time_params: TimeParams = <factory>, subset: str | None = None, random: bool = False, value: str | int | None = None)[source]#

Monte Carlo weather generator. Random sample of temporal unit (e.g. days) from set (month, week, day).

Parameters:
  • dataset (str) – Source of weather data. Options: “meteonorm”, “merra2”, “nci”.

  • location (str | Location) – City where the simulation is performed.

  • time_params (TimeParams) – Time parameters defining the simulation period.

  • subset (str | None) – The subset to generate data. Options: “annual”, “season”, “month”, “date”.

  • random (bool) – Whether generates data randomly or periodically.

  • value (str | int | None) – The value used on subset (season name, month number, or date).

__init__(dataset: str = 'meteonorm', location: str | Location = <factory>, time_params: TimeParams = <factory>, subset: str | None = None, random: bool = False, value: str | int | None = None) None#
Parameters:
Return type:

None

Methods

__init__(dataset, location, time_params, ...)

load_data()

Load Monte Carlo weather data based on the instance's time_params.

Attributes

dataset

random

subset

value

location

time_params