pyrex.ray_tracing.SpecializedRayTracePath.z_integral¶
-
SpecializedRayTracePath.
z_integral
(integrand, integrand_kwargs={}, numerical=False)¶ Calculate the integral of the given integrand.
For the integrand as a function of z, the analytic or numerical integral is calculated along the ray path.
- Parameters
- integrandfunction
Function returning the values of the integrand at a given array of values for the depth z.
- integrand_kwargsdict, optional
A dictionary of keyword arguments to be passed into the integrand function.
- numericalboolean, optional
Whether to use the numerical integral instead of an analytic one. If
False
the analytic integral is calculated. IfTrue
the numerical integral is calculated.
- Returns
- float
The value of the integral along the ray path.
- Raises
- TypeError
If the ice model is not valid for the specialized analytic integrations.