pvfactors.geometry.timeseries.TsLineCoords
- class pvfactors.geometry.timeseries.TsLineCoords(b1_ts_coords, b2_ts_coords, coords=None)[source]
Timeseries line coordinates class: will provide a helpful shapely-like API to invoke timeseries coordinates.
- __init__(b1_ts_coords, b2_ts_coords, coords=None)[source]
Initialize timeseries line coordinates using the timeseries coordinates of its boundaries.
- Parameters
b1_ts_coords (
TsPointCoords
) – Timeseries coordinates of first boundary pointb2_ts_coords (
TsPointCoords
) – Timeseries coordinates of second boundary pointcoords (np.ndarray, optional) – Timeseries coordinates as numpy array
Methods
__init__
(b1_ts_coords, b2_ts_coords[, coords])Initialize timeseries line coordinates using the timeseries coordinates of its boundaries.
at
(idx)Get coordinates at a given index
from_array
(coords_array)Create timeseries line coordinates from numpy array of coordinates.
Attributes
as_array
Timeseries line coordinates as numpy array
centroid
Timeseries point coordinates of the line coordinates
highest_point
Timeseries point coordinates of highest point of timeseries line coords
length
Timeseries length of the line.
lowest_point
Timeseries point coordinates of lowest point of timeseries line coords