pyrfu.mms.get_pitch_angle_dist module#
- pyrfu.mms.get_pitch_angle_dist.get_pitch_angle_dist(vdf, b_xyz, tint: list | None = None, **kwargs)[source]#
Computes the pitch angle distributions from l1b brst particle data.
- Parameters:
vdf (xarray.Dataset) – to fill
b_xyz (xarray.DataArray) – to fill
angles (int or float or list of ndarray) – User defined angles.
meanorsum ({'mean', 'sum', 'sum_weighted'}) – Method.
- Returns:
pad – Particle pitch angle distribution
- Return type:
Examples
>>> from pyrfu import mms
Define time intervals
>>> tint_long = ["2017-07-24T12:48:34.000", "2017-07-24T12:58:20.000"] >>> tint_zoom = ["2017-07-24T12:49:18.000", "2017-07-24T12:49:30.000"]
Load ions velocity distribution for MMS1
>>> vdf_i = mms.get_data("pdi_fpi_brst_l2", tint_long, 1)
Load magnetic field in the spacecraft coordinates system.
>>> b_dmpa = mms.get_data("b_dmpa_fgm_brst_l2", tint_long, 1)
Compute pitch angle distribution
>>> options = dict(angles=24) >>> pad_i = mms.get_pitch_angle_dist(vdf, b_dmpa, tint_zoom, **options)