pyrfu.pyrf.match_phibe_dir module#

pyrfu.pyrf.match_phibe_dir.match_phibe_dir(b_xyz, e_xyz, angles: ndarray | None = None, f: float | None = None)[source]#

Get propagation direction by matching dBpar and “phi”. Tries different propagation directions and finds the direction perpendicular to the magnetic field that gives the best correlation between the electrostatic potential and the parallel wave magnetic field according to

\[\int E \textrm{d}t = \frac{B_0}{ne \mu_0} B_{wave}\]
Parameters:
  • b_xyz (xarray.DataArray) – Time series of the magnetic field (to be filtered if f is given).

  • e_xyz (xarray.DataArray) – Time series of the electric field (to be filtered if f is given).

  • angles (array_like, Optional) – The angles in degrees to try (1-180 default)

  • f (float, Optional) – Filter frequency.

Returns:

  • x (ndarray) – Normal direction (size: n_triesx3).

  • y (ndarray) – Propagation direction.

  • z (ndarray) – Magnetic field direction.

  • corr_vec (ndarray) – Correlation vector.

  • int_e_dt (ndarray) – Potential.

  • b_z (ndarray) – Wave magnetic field in parallel direction.

  • b_0 (ndarray) – Mean magnetic field.

  • de_k (ndarray) – Wave electric field in propagation direction.

  • de_n (ndarray) – Wave electric field in propagation normal direction.

  • e_k (ndarray) – Electric field in propagation direction.

  • e_n (ndarray) – Electric field in propagation normal direction.