POES
el_paso.recipes.poes.process_poes_meped.process_poes_meped_electron
process_poes_meped_electron
Process POES/MetOp MEPED electron flux data into magnetic-field-resolved data products.
Downloads and extracts the SEM-2 "fluxes-2sec" CDF files for the given POES/MetOp satellite, bins the integral electron flux, energy channels, local pitch angles, and ephemeris onto the given time cadence. The two local pitch angles (0 and 90 degrees relative to the spacecraft) are stacked into a single pitch-angle variable, and the geodetic position is converted to GEO coordinates. T89 magnetic field quantities (B_Calc, B_Eq, MLT_Eq, R_Eq, Alpha_Eq, L_star, L_m) are computed and the resulting variables are saved using a daily LEO saving strategy.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
satellite_str
|
poes_satellite_literal
|
The POES/MetOp satellite to process. |
required |
raw_data_path
|
str | Path
|
Directory where the raw downloaded data files are stored. |
required |
processed_data_path
|
str | Path
|
Directory where the processed output files are saved. |
required |
start_time
|
datetime
|
Start of the time interval to process. |
required |
end_time
|
datetime
|
End of the time interval to process. |
required |
num_cores
|
int
|
Number of CPU cores used for the magnetic field computations. Defaults to 32. |
32
|
bin_cadence
|
timedelta
|
Time cadence used to bin the extracted variables. Defaults to timedelta(minutes=5). |
timedelta(minutes=5)
|
Source code in el_paso/recipes/poes/process_poes_meped.py
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 | |
el_paso.recipes.poes.process_poes_ted.process_poes_ted_electron
process_poes_ted_electron
Process POES/MetOp TED electron flux data into magnetic-field-resolved data products.
Downloads and extracts the SEM-2 "fluxes-2sec" CDF files for the given POES/MetOp satellite, bins the differential electron flux, energy channels, local pitch angles, and ephemeris onto the given time cadence. The two local pitch angles (0 and 30 degrees relative to the spacecraft) are stacked into a single pitch-angle variable and folded into the 0-90 degree range, and the geodetic position is converted to GEO and spherical GEO coordinates. T89 magnetic field quantities (B_Calc, MLT, B_Eq, R_Eq, Alpha_Eq, Alpha_LC, Alpha_LC_Eq, and optionally L_star and L_m) are computed and the resulting variables are saved using a daily LEO saving strategy.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
satellite_str
|
poes_satellite_literal
|
The POES/MetOp satellite to process. |
required |
raw_data_path
|
str | Path
|
Directory where the raw downloaded data files are stored. |
required |
processed_data_path
|
str | Path
|
Directory where the processed output files are saved. |
required |
start_time
|
datetime
|
Start of the time interval to process. |
required |
end_time
|
datetime
|
End of the time interval to process. |
required |
num_cores
|
int
|
Number of CPU cores used for the magnetic field computations. Defaults to 32. |
32
|
bin_cadence
|
timedelta
|
Time cadence used to bin the extracted variables. Defaults to timedelta(minutes=5). |
timedelta(minutes=5)
|
calculate_Lm_Lstar
|
bool
|
If True, additionally compute and save the L_m and L_star magnetic field quantities. Defaults to False. |
False
|
Source code in el_paso/recipes/poes/process_poes_ted.py
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 219 220 221 222 223 224 225 | |