ClimoDataArrayAccessor.divergence

ClimoDataArrayAccessor.divergence(cos_power=1, centered=True, **kwargs)[source]

Return the spherical meridional divergence. To calculate the divergence at the poles, the numerator is assumed to vanish and l’Hopital’s rule is invoked.

Parameters
  • cos_power (int, optional) – Exponent to which the cosines in the numerator and denominator is raised. Default is 1, but the contribution of the angular momentum flux convergence to the zonal wind budget requires 2 (this can be seen by writing the budget equation for the angular momentum \(L\) and solving for \(\partial_t u\)).

  • centered (bool, optional) – If False, use more accurate (but less convenient) half-level differentiation rather than centered differentiation.

  • **kwargs – Passed to deriv_uneven or deriv_half.