spacepy.empiricals.vampolaPA¶
- spacepy.empiricals.vampolaPA(omniflux, **kwargs)[source]¶
Pitch angle model of sin^n form
- Parameters:
- omnifluxarraylike or float
omnidirectional number flux data
- orderinteger or float (optional)
order of sin^n functional form for distribution (default=2)
- alphasarraylike (optional)
pitch angles at which to evaluate the differential number flux (default is 5 to 90 degrees in 36 steps)
- Returns:
- dnfluxarray
differential number flux corresponding to pitch angles alphas
- alphasarray
pitch angles at which the differential number flux was evaluated
Notes
Directional number flux integrated over pitch angle from 0 to 90 degrees is a factor of 4*pi lower than omnidirectional number flux.
Examples
Omnidirectional number flux of [3000, 6000]
>>> from spacepy.empiricals import vampolaPA >>> vampolaPA(3000, alpha=[45, 90]) (array([ 179.04931098, 358.09862196]), [45, 90]) >>> data, pas = vampolaPA([3000, 6000], alpha=[45, 90]) >>> pas [45, 90] >>> data array([[ 179.04931098, 358.09862196], [ 358.09862196, 716.19724391]])