rex.renewable_resource.linear_interp
- linear_interp(ts_1, h_1, ts_2, h_2, h)[source]
Linear interpolate/extrapolate time-series data to height h
- Parameters:
ts_1 (ndarray) – Time-series array at height h_1
h_1 (int | float) – Height corresponding to time-seris ts_1
ts_2 (ndarray) – Time-series array at height h_2
h_2 (int | float) – Height corresponding to time-seris ts_2
h (int | float) – Height of desired time-series
- Returns:
out (ndarray) – Time-series array at height h