pyrtlib.rt_equation.RTEquation.exponential_integration#
- static RTEquation.exponential_integration(zeroflg: bool, x: ndarray, ds: ndarray, ibeg: int, iend: int, factor: float) Tuple[ndarray, ndarray]#
EXPonential INTegration: Integrate the profile in array x over the layers defined in array ds, saving the integrals over each layer.
- Parameters:
zeroflg (bool) – Flag to handle zero values (0:layer=0, 1:layer=avg).
x (numpy.ndarray) – Profile array.
ds (numpy.ndarray) – Array of layer depths (km).
ibeg (int) – Lower integration limit (profile level number).
iend (int) – Upper integration limit (profile level number).
factor (float) – Factor by which result is multiplied (e.g., unit change).
- Returns:
- xdsnumpy.ndarray
Array containing integrals over each layer ds
- sxdsnumpy.ndarray
Integral of x*ds over levels ibeg to iend
- Return type: