antupy.tsg.weather.WeatherHist#

class antupy.tsg.weather.WeatherHist(dataset: str = 'merra2', location: str | Location = <factory>, time_params: TimeParams = <factory>, file_path: str | None = None, list_dates: DatetimeIndex | Timestamp | None = None)[source]#

Historical weather generator. Specific dates for a specific location from historical datasets.

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

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

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

  • file_path (str | None) – Path to the weather file location.

  • list_dates (DatetimeIndex | Timestamp | None) – Set of dates to load.

__init__(dataset: str = 'merra2', location: str | Location = <factory>, time_params: TimeParams = <factory>, file_path: str | None = None, list_dates: DatetimeIndex | Timestamp | None = None) None#
Parameters:
  • dataset (str)

  • location (str | Location)

  • time_params (TimeParams)

  • file_path (str | None)

  • list_dates (DatetimeIndex | Timestamp | None)

Return type:

None

Methods

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

load_data()

Load historical weather data based on the instance's time_params.

Attributes

dataset

file_path

list_dates

location

time_params