rex.bias_correction.lin_ws
- lin_ws(ws, scalar=1, adder=0)[source]
Correct windspeed using linear correction factors. Windspeed is corrected as
windspeed * scalar + adder
with a minimum of zero.- Parameters:
ws (np.ndarray) – 2D array of windspeed values in shape (time, space)
scalar (np.ndarray) – 1D array of linear scalar values in the shape (space,)
adder (np.ndarray) – 1D array of linear adder values in the shape (space,)
- Returns:
ws (np.ndarray) – 2D array of windspeed values in shape (time, space)