RBSP
el_paso.recipes.rbsp.process_rbsp_ect_combined.process_rbsp_ect_combined
process_rbsp_ect_combined
Process combined RBSP ECT (REPT/MagEIS) electron flux data into the EL-PASO data standard.
Downloads the daily RBSP ECT combined level-3 electron CDF files for the given time range and satellite, extracts the energy/pitch-angle-resolved flux (FEDU), omni-directional flux (FEDO), and position, time-bins all variables to the given cadence, folds the pitch angles and flux to the [0, 90] degree range, computes magnetic-field-related quantities (B field, equatorial pitch angle, L*, L_m, MLT, InvMu, InvK, etc.) with the given magnetic field model via IRBEM, computes the electron phase space density from FEDU, and saves all resulting variables using the requested saving strategy/strategies.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
start_time
|
datetime
|
Start of the time range to process. |
required |
end_time
|
datetime
|
End of the time range to process. |
required |
sat_str
|
Literal['a', 'b']
|
RBSP satellite identifier ("a" or "b"). |
required |
mag_field
|
Literal['T89', 'T96', 'TS04', 'OP77']
|
Magnetic field model used to compute the magnetic-field-related variables. |
required |
raw_data_path
|
str | Path
|
Directory where raw CDF files are downloaded to and read from. Defaults to ".". |
'.'
|
processed_data_path
|
str | Path
|
Directory where the processed output files are written to. Defaults to ".". |
'.'
|
cadence
|
timedelta
|
Time-binning cadence applied to all variables. Defaults to timedelta(minutes=5). |
timedelta(minutes=5)
|
save_strategy
|
Literal['gfz', 'netcdf', 'both']
|
Which saving strategy/strategies to use for writing the processed output. Defaults to "netcdf". |
'netcdf'
|
num_cores
|
int
|
Number of CPU cores used for the magnetic field computations. Defaults to 4. |
4
|
Source code in el_paso/recipes/rbsp/process_rbsp_ect_combined.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 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 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 | |
el_paso.recipes.rbsp.process_rbsp_efw_emfisis_density_combined.process_efw_emfisis_density_combined
process_efw_emfisis_density_combined
Process and combine RBSP EFW and EMFISIS electron density data.
Downloads and extracts EFW (level-3) and EMFISIS (level-4) density data for the given time range and satellite, time-bins both to a 1-minute cadence, cleans the EMFISIS density by masking out "fpe"-flagged digitizer-type entries, transforms the EFW position from GSE to GEO coordinates using IRBEM, computes magnetic-field-related quantities (MLT, equatorial radial distance, equatorial position) with the given magnetic field model, and maps both the EFW and EMFISIS local densities to the magnetic equator using the Denton-average model. If requested, also loads and time-bins hiss-derived densities and maps those to the equator as well.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
start_time
|
datetime
|
Start of the time range to process. |
required |
end_time
|
datetime
|
End of the time range to process. |
required |
sat_str
|
Literal['a', 'b']
|
RBSP satellite identifier ("a" or "b"). |
required |
irbem_lib_path
|
str | Path
|
Path to the compiled IRBEM library, used for coordinate transforms and magnetic field computations. |
required |
mag_field
|
Literal['T89', 'T96', 'TS04']
|
Magnetic field model used to compute the magnetic-field-related variables. |
required |
raw_data_path
|
str | Path
|
Directory where raw CDF files are downloaded to and read from. Defaults to ".". |
'.'
|
processed_data_path
|
str | Path
|
Directory where the processed output files would be written to. Defaults to ".". |
'.'
|
num_cores
|
int
|
Number of CPU cores used for the magnetic field computations. Defaults to 4. |
4
|
add_hiss_derived_densitites
|
bool
|
If True, also load, time-bin, and map to the equator the hiss-derived density data. Defaults to True. |
True
|
hiss_derived_densities_data_path
|
str | Path
|
Directory containing the hiss-derived density text files. Defaults to ".". |
'.'
|
Raises:
| Type | Description |
|---|---|
NotImplementedError
|
Always raised before the processed variables are saved; saving via
|
Source code in el_paso/recipes/rbsp/process_rbsp_efw_emfisis_density_combined.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 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 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 | |
el_paso.recipes.rbsp.process_rbsp_emfisis_waves.process_rbsp_emfisis_waves
process_rbsp_emfisis_waves
Process RBSP EMFISIS wave, density, and magnetometer data and save derived wave properties.
Downloads and extracts the EMFISIS WFR spectral-matrix-diagonal data, the EMFISIS density
data, the EMFISIS magnetometer data, and the EMFISIS wave-normal-angle (WNA) survey data for
the given time range and satellite. The density and magnetometer data are interpolated onto
the WFR time grid, the magnetometer data is cleaned using a quality flag, orbital quantities
(L-shell, MLAT, MLT, electron cyclotron frequency) are derived from the cleaned magnetometer
data, and the total magnetic wave power spectral density is computed from the WFR
spectral-matrix components. The wave frequency, frequency bandwidth, wave normal angle,
planarity, and ellipticity are saved using DailyWaveStrategy. Finally, diagnostic plots of
the density, orbit, magnetometer, WFR spectrogram, and WNA properties are generated and shown
or saved to disk.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
start_time
|
datetime
|
Start of the time range to process. |
required |
end_time
|
datetime
|
End of the time range to process. |
required |
sat_str
|
Literal['a', 'b']
|
RBSP satellite identifier ("a" or "b"). |
required |
raw_data_path
|
str | Path
|
Base directory where raw CDF files are downloaded to and read from. Defaults to ".". |
'.'
|
processed_data_path
|
str | Path
|
Directory where the processed output files are written to. Defaults to ".". |
'.'
|
Source code in el_paso/recipes/rbsp/process_rbsp_emfisis_waves.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | |
el_paso.recipes.rbsp.process_rbsp_hope_electrons.process_rbsp_hope_electrons
process_rbsp_hope_electrons
Process RBSP ECT/HOPE electron flux data into the EL-PASO data standard.
Downloads the daily RBSP HOPE pitch-angle level-3 electron CDF files for the given time range and satellite, extracts the energy/pitch-angle-resolved flux (FEDU) and position, applies a lower threshold to the flux, time-bins all variables to a 5-minute cadence, folds the pitch angles and flux to the [0, 90] degree range, computes magnetic-field-related quantities (B field, equatorial pitch angle, L*, L_m, MLT, InvMu, InvK, etc.) with the given magnetic field model via IRBEM, computes the electron phase space density from FEDU, and saves all resulting variables using the requested saving strategy/strategies.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
start_time
|
datetime
|
Start of the time range to process. |
required |
end_time
|
datetime
|
End of the time range to process. |
required |
sat_str
|
Literal['a', 'b']
|
RBSP satellite identifier ("a" or "b"). |
required |
mag_field
|
Literal['T89', 'T96', 'TS04']
|
Magnetic field model used to compute the magnetic-field-related variables. |
required |
raw_data_path
|
str | Path
|
Directory where raw CDF files are downloaded to and read from. Defaults to ".". |
'.'
|
processed_data_path
|
str | Path
|
Directory where the processed output files are written to. Defaults to ".". |
'.'
|
num_cores
|
int
|
Number of CPU cores used for the magnetic field computations. Defaults to 32. |
32
|
save_strategy
|
Literal['gfz', 'netcdf', 'both']
|
Which saving strategy/strategies to use for writing the processed output. Defaults to "netcdf". |
'netcdf'
|
Source code in el_paso/recipes/rbsp/process_rbsp_hope_electrons.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 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 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 | |