pvfactors.geometry.pvrow.TsSegment
- class pvfactors.geometry.pvrow.TsSegment(coords, illum_collection, shaded_collection, index=None, n_vector=None)[source]
A TsSegment is a timeseries segment that has a timeseries shaded collection and a timeseries illuminated collection.
- __init__(coords, illum_collection, shaded_collection, index=None, n_vector=None)[source]
Initialize timeseries segment using segment coordinates and timeseries illuminated and shaded surfaces.
- Parameters
coords (
TsLineCoords) – Timeseries coordinates of full segmentillum_collection (
TsShadeCollection) – Timeseries collection for illuminated part of segmentshaded_collection (
TsShadeCollection) – Timeseries collection for shaded part of segmentindex (int, optional) – Index of segment (Default = None)
n_vector (np.ndarray, optional) – Timeseries normal vectors of the side (Default = None)
Methods
__init__(coords, illum_collection, ...[, ...])Initialize timeseries segment using segment coordinates and timeseries illuminated and shaded surfaces.
at(idx)Generate a PV segment geometry for the desired index.
get_param_weighted(param)Get timeseries parameter for the segment, after weighting by surface length.
get_param_ww(param)Get timeseries parameter from the segment's surfaces with weight, i.e. after multiplying by the surface lengths.
plot_at_idx(idx, ax[, color_shaded, color_illum])Plot timeseries segment at a certain index.
surfaces_at_idx(idx)Get all PV surface geometries in timeseries segment for a certain index.
update_params(new_dict)Update timeseries surface parameters of the segment.
Attributes
all_ts_surfacesList of all timeseries surfaces in segment
centroidTimeseries point coordinates of the segment's centroid
highest_pointTimeseries point coordinates of highest point of segment
lengthTimeseries length of segment.
lowest_pointTimeseries point coordinates of lowest point of segment
n_ts_surfacesNumber of timeseries surfaces in the segment
shaded_lengthTimeseries length of shaded part of segment.