sup3r.bias.bias_transforms.global_linear_bc
- global_linear_bc(input, scalar, adder, out_range=None)[source]
Bias correct data using a simple global *scalar +adder method.
- Parameters:
input (np.ndarray) – Sup3r input data to be bias corrected, assumed to be 3D with shape (spatial, spatial, temporal) for a single feature.
scalar (float) – Scalar (multiplicative) value to apply to input data.
adder (float) – Adder value to apply to input data.
out_range (None | tuple) – Option to set floor/ceiling values on the output data.
- Returns:
out (np.ndarray) – out = input * scalar + adder