bispy.utils.normalizeStokes
- bispy.utils.normalizeStokes(S0, S1, S2, S3, tol=0.0)[source]
Normalize Stokes parameters S1, S2, S3 by S0.
Normalization can be performed using a soft thresholding-like method, if regularization is needed:
Si = Si/(S0 + tol*np.max(S0))
where i = 1, 2, 3 and tol is the tolerance factor. This function assumes that the maximum value of S0 has a significance for the whole indices of the Si arrays.
- Parameters:
- S0, S1, S2, S3array_type
- tolfloat, optional
- Returns:
- S1n, S2n, S3narray_type
See also