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_surfaces
List of all timeseries surfaces in segment
centroid
Timeseries point coordinates of the segment's centroid
highest_point
Timeseries point coordinates of highest point of segment
length
Timeseries length of segment.
lowest_point
Timeseries point coordinates of lowest point of segment
n_ts_surfaces
Number of timeseries surfaces in the segment
shaded_length
Timeseries length of shaded part of segment.