pyrfu.pyrf.match_phibe_v module#
- pyrfu.pyrf.match_phibe_v.match_phibe_v(b_0, b_z, int_e_dt, n, v)[source]#
Get propagation velocity by matching dBpar and phi. Used together with irf_match_phibe_dir.m.Finds best match in amplitude given, B0, dB_par, phi, propagation direction implied, for specified n and v given as vectors.Returns a matrix of correlations and the two potentials that were correlated.
- Parameters:
b_0 (array_like) – Average background magnetic field.
b_z (array_like) – Parallel wave magnetic field.
int_e_dt (array_like) – Potential.
n (array_like) – Vector of densities
v (array_like) – Vector of velocities.
- Returns:
corr_mat (numpy.ndarray) – Correlation matrix(nn x nv).
phi_b (numpy.ndarray) – B0 * dB_par / n_e * e * mu0
phi_e (numpy.ndarray) – int(E) dt * v(dl=-vdt = > -dl = vdt)