Fold pitch angles and flux
el_paso.processing.fold_pitch_angles_and_flux
Classes
Functions:
el_paso.processing.fold_pitch_angles_and_flux.fold_pitch_angles_and_flux
fold_pitch_angles_and_flux
Folds pitch angles and corresponding flux values around 90 degrees.
This function modifies the input flux_var and pa_local_var in place
by folding the pitch angle data and averaging the corresponding flux values
around 90 degrees. It assumes that pitch angles are symmetric around 90 degrees.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
flux_var
|
Variable
|
A Variable object containing the flux data. This object will be modified in place with the folded flux data. Expected to have a shape compatible with (time, energy_bins, pitch_angle_bins). |
required |
pa_local_var
|
Variable
|
A Variable object containing the local pitch angle data. This object will be modified in place with the unique folded pitch angles in degrees. Expected to have a shape compatible with (time, pitch_angle_bins). |
required |
produce_statistic_plot
|
bool
|
If True, a statistical plot related to the folding process will be produced. Defaults to False. |
False
|
Raises:
| Type | Description |
|---|---|
ValueError
|
|
Source code in el_paso/processing/fold_pitch_angles_and_flux.py
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | |