GOES
el_paso.recipes.goes.process_goes_r_mps_high.process_goes_r_mps_high
process_goes_r_mps_high
Process GOES-R MPS-HI MAGED electron data into pitch-angle resolved phase space densities.
Downloads and extracts the magnetometer (MAGN), MPS-HI energetic particle (MPSH), and ephemeris (EPHE) L2 data products for the given GOES-R satellite, bins them onto a common 5-minute time cadence, computes the local telescope pitch angles from the magnetic field direction, sorts the differential electron fluxes by ascending pitch angle, transforms the spacecraft position to GEO coordinates, computes T89 magnetic field quantities (B_Calc, B_Eq, MLT, R_Eq, Alpha_Eq, L_star, L_m, InvMu, InvK), and derives the electron phase space density. The resulting variables are saved using the requested saving strategy.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
sat_str
|
Literal['goes18', 'goes19']
|
The GOES-R satellite to process. |
required |
processed_data_path
|
str | Path
|
Directory where the processed output files are saved. |
required |
raw_data_path
|
str | Path
|
Directory where the raw downloaded data files are stored. |
required |
start_time
|
datetime
|
Start of the time interval to process. |
required |
end_time
|
datetime
|
End of the time interval to process. |
required |
save_strategy
|
Literal['gfz', 'netcdf']
|
Strategy used to save the processed data. "gfz" saves using the GFZ format, "netcdf" saves monthly NetCDF files. Defaults to "netcdf". |
'netcdf'
|
num_cores
|
int
|
Number of CPU cores used for the magnetic field computations. Defaults to 32. |
32
|
Source code in el_paso/recipes/goes/process_goes_r_mps_high.py
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 | |
el_paso.recipes.goes.process_goes_realtime.process_goes_real_time
process_goes_real_time
Process GOES real-time differential electron flux data into pitch-angle resolved phase space densities.
Downloads and extracts the real-time "differential-electrons-3-day" JSON product for the
given GOES satellite, converts the timestamps and energy channel labels, sorts the energy
channels and fluxes in ascending order, and bins the data onto a 5-minute time cadence.
A fixed spacecraft position (from GEOCOORDS_DICT) and a fixed set of local pitch angles
(5 to 90 degrees in 5-degree steps) are assigned, T89 magnetic field quantities (B_Calc, B_Eq,
MLT, R_Eq, Alpha_Eq, L_star, L_m, InvMu, InvK) are computed, the omnidirectional flux is
converted to a pitch-angle distribution, and the electron phase space density is derived.
The resulting variables are saved using the requested saving strategy.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
sat_str
|
Literal['primary', 'secondary']
|
Which GOES real-time satellite to process ("primary" corresponds to GOES19, "secondary" to GOES18). |
required |
processed_data_path
|
str | Path
|
Directory where the processed output files are saved. |
required |
raw_data_path
|
str | Path
|
Directory where the raw downloaded data files are stored. |
required |
start_time
|
datetime
|
Start of the time interval to process. |
required |
end_time
|
datetime
|
End of the time interval to process. |
required |
save_strategy
|
Literal['gfz', 'netcdf', 'both']
|
Strategy used to save the processed data. "gfz" saves using the GFZ format, "netcdf" saves monthly NetCDF files, and "both" saves using both strategies. Defaults to "netcdf". |
'netcdf'
|
num_cores
|
int
|
Number of CPU cores used for the magnetic field computations. Defaults to 32. |
32
|
skip_existing
|
bool
|
If True, skip downloading files that already exist on disk. Defaults to True. |
True
|
Source code in el_paso/recipes/goes/process_goes_realtime.py
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 226 227 228 229 230 231 232 233 234 235 236 | |