pyrfu.pyrf.poynting_flux#
- pyrfu.pyrf.poynting_flux(e_xyz, b_xyz, b_hat=None)[source]#
Estimates Poynting flux at electric field sampling as
\[S = \frac{E \times B}{\mu_0}\]if b_hat is given project the Poynting flux along b_hat
- Parameters:
e_xyz (xarray.DataArray) – Time series of the electric field in mV/m.
b_xyz (xarray.DataArray) – Time series of the magnetic field in nT.
b_hat (xarray.DataArray, Optional) – Time series of the direction to project the Poynting flux. Default is None (no projection).
- Returns:
s (xarray.DataArray) – Time series of the Poynting flux in mW/m^2.
s_z (xarray.DataArray) – Time series of the projection of the Poynting flux along b_hat in mW/m^2 (only if b_hat is given).
int_s (xarray.DataArray) – Time series of the time integral of the Poynting flux, in mW s/m^2: of each component, or of the projection along b_hat if it is given. NaNs count as zero in the integral.
Notes
E and B are clipped to the interval where both exist, and the one with fewer samples is resampled to the times of the other one (B to E if they have the same number of samples but different times).