ctdcal.oxy_fitting.calculate_weights

ctdcal.oxy_fitting.calculate_weights(pressure)[source]

Calculate weights (as a function of pressure) for weighted least squares fitting. Deep measurements are weighted higher than shallow.

Parameters:

presssure (array-like) – Pressure values of oxygen measurements [dbar]

Returns:

weights – Weight factor for each pressure value

Return type:

array-like