pvfactors.geometry.timeseries.TsSurface
- class pvfactors.geometry.timeseries.TsSurface(coords, n_vector=None, param_names=None, index=None, shaded=False)[source]
Timeseries surface class: vectorized representation of PV surface geometries.
- __init__(coords, n_vector=None, param_names=None, index=None, shaded=False)[source]
Initialize timeseries surface using timeseries coordinates.
- Parameters
coords (
TsLineCoords
) – Timeseries coordinates of full segmentindex (int, optional) – Index of segment (Default = None)
n_vector (np.ndarray, optional) – Timeseries normal vectors of the side (Default = None)
index – Index of the timeseries surfaces (Default = None)
shaded (bool, optional) – Is the surface shaded or not (Default = False)
Methods
__init__
(coords[, n_vector, param_names, ...])Initialize timeseries surface using timeseries coordinates.
at
(idx)Generate a PV segment geometry for the desired index.
get_param
(param)Get timeseries parameter values of surface
plot_at_idx
(idx, ax, color)Plot timeseries PV row at a certain index, only if it's not too small.
update_params
(new_dict)Update timeseries surface parameters.
Attributes
b1
Timeseries coordinates of first boundary point
b2
Timeseries coordinates of second boundary point
centroid
Timeseries point coordinates of the surface's centroid
highest_point
Timeseries point coordinates of highest point of surface
is_empty
Check if surface is "empty" by checking if its length is always zero
length
Timeseries length of the surface
lowest_point
Timeseries point coordinates of lowest point of surface
u_vector
Vector orthogonal to the surface's normal vector