pyrfu.pyrf.e_vxb module#

pyrfu.pyrf.e_vxb.e_vxb(v_xyz, b_xyz, flag: str = 'vxb')[source]#

Computes the convection electric field \(V\times B\) (default) or the \(E\times B/|B|^{2}\) drift velocity (flag=”exb”).

Parameters:
  • v_xyz (xarray.DataArray) – Time series of the velocity/electric field.

  • b_xyz (xarray.DataArray) – Time series of the magnetic field.

  • flag ({"vxb", "exb"}, Optional) –

    Method flag :
    • ”vxb” : computes convection electric field (Default).

    • ”exb” : computes ExB drift velocity.

Returns:

out – Time series of the convection electric field/ExB drift velocity.

Return type:

xarray.DataArray

Examples

>>> from pyrfu import mms, pyrf

Time interval

>>> tint = ["2019-09-14T07:54:00.000", "2019-09-14T08:11:00.000"]

Spacecraft index

>>> mms_id = 1

Load magnetic field and electric field

>>> b_xyz = mms.get_data("b_gse_fgm_srvy_l2", tint, mms_id)
>>> e_xyz = mms.get_data("e_gse_edp_fast_l2", tint, mms_id)

Compute ExB drift velocity

>>> v_xyz_exb = pyrf.e_vxb(e_xyz, b_xyz,"ExB")