pyrc.dataHandler.weather#

class WeatherData(path, start_time: str | datetime = '2015-01-01T01:00')#

Bases: object

get_interpolator(name) Callable#
get_interpolator_values() tuple#
get_radiation_on_wall_interpolator(wall: Wall) Callable#

Returns an interpolator that calculates the incoming specific power on a wall in W/m^2.

Parameters:

wall (Wall) – The wall to calculate the incoming specific power on.

Returns:

The interpolator in the form f(time, *args, **kwargs) where only the time variable is actually used.

Return type:

Callable

get_raw_data() ndarray#
property interpolators: list[PchipInterpolator]#
property period#
radiation_interpolator(wall: Wall, wavelength_type='short') Callable#

Returns an interpolator that calculates the incoming specific power of short/long wavelengths on a wall in W/m^2.

Parameters:
  • wall (Wall) – The wall to calculate the incoming specific power on.

  • wavelength_type (str | int | bool, optional) – The type of wavelengths to use. If “short”, 0 or False, the interpolator for short wavelengths are returned, long otherwise.

Returns:

The interpolator in the form f(time, *args, **kwargs) where only the time variable is actually used.

Return type:

Callable

reorder_matrix_by_time()#