pyrfu.pyrf.edb module#

pyrfu.pyrf.edb.edb(e_xyz, b_bgd, angle_lim: float = 20.0, flag_method: str = 'E.B=0')[source]#

Compute Ez under assumption \(\mathbf{E}.\mathbf{B}=0\) or \(\mathbf{E}.\mathbf{B} \approx 0\)

Parameters:
  • e_xyz (xarray.DataArray) – Time series of the electric field.

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

  • angle_lim (float, Optional) – B angle with respect to the spin plane should be less than angle_lim degrees otherwise Ez is set to 0. Default is 20.

  • flag_method (str, Optional) –

    Assumption on the direction of the measured electric field :

    ”e.b=0” : \(\mathbf{E}.\mathbf{B}=0\). (Default) “e_par” : \(\mathbf{E}\) field along the B projection is coming from parallelelectric field. “e_perp+nan” : to fill.

Returns:

  • ed (xarray.DataArray) – Time series of the electric field output.

  • d (xarray.DataArray) – Time series of the B elevation angle above spin plane.

Examples

>>> from pyrfu import mms, pyrf

Time interval

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

Spacecraft indices

>>> mms_id = 1

Load magnetic field, electric field and spacecraft position

>>> 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 Ez

>>> e_z, alpha = pyrf.edb(e_xyz, b_xyz)