pyrfu.mms.psd2def#
- pyrfu.mms.psd2def(inp)[source]#
Changes units to differential energy flux.
- Parameters:
inp (xarray.Dataset or xarray.DataArray) – Phase-space density in s^3/cm^6, s^3/m^6 or s^3/km^6: a distribution (Dataset with a data variable, e.g. a skymap or a pitch-angle distribution) or a spectrum (DataArray), with (energy,) or (time, energy) energies in eV.
- Returns:
out – Differential energy flux in keV/(cm^2 s sr keV), with the shape of inp.
- Return type:
- Raises:
TypeError – If inp is not a xarray.Dataset or xarray.DataArray.
ValueError – If the species or the units are not supported.