Arase
el_paso.recipes.arase.get_arase_orbit_variables.get_arase_orbit_level_2_variables
get_arase_orbit_level_2_variables
Download and extract Arase Level 2 orbit (definitive) data.
Downloads the daily Arase orb/def Level 2 CDF files covering the requested time range
(skipping files that already exist) and extracts the epoch and SM position variables from them.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
start_time
|
datetime
|
Start of the time range to retrieve data for. |
required |
end_time
|
datetime
|
End of the time range to retrieve data for. |
required |
raw_data_path
|
str | Path
|
Directory where the downloaded raw data files are stored. Defaults to ".". |
'.'
|
Returns:
| Type | Description |
|---|---|
dict[str, Variable]
|
dict[str, ep.Variable]: A dictionary containing the extracted "Epoch" and "pos_sm" variables. |
Source code in el_paso/recipes/arase/get_arase_orbit_variables.py
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 | |
el_paso.recipes.arase.get_arase_orbit_variables.get_arase_orbit_level_3_variables
get_arase_orbit_level_3_variables
Download and extract Arase Level 3 orbit data for a given magnetic field model.
Downloads the daily Arase orb/l3 Level 3 CDF files corresponding to the given mag_field
model (skipping files that already exist), extracts the epoch, local and equatorial magnetic
field magnitude, Lm, Lstar and equatorial position variables, truncates all variables to the
requested time range, and derives "MLT" and "R0" variables from the equatorial position.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
start_time
|
datetime
|
Start of the time range to retrieve data for. |
required |
end_time
|
datetime
|
End of the time range to retrieve data for. |
required |
mag_field
|
Literal['OP77Q', 'T89', 'TS04']
|
The magnetic field model whose Level 3 orbit data should be downloaded and extracted. |
required |
raw_data_path
|
str | Path
|
Directory where the downloaded raw data files are stored. Defaults to ".". |
'.'
|
Returns:
| Type | Description |
|---|---|
dict[str, Variable]
|
dict[str, ep.Variable]: A dictionary containing the extracted and derived variables ("Epoch", "B_local", "B_eq", "Lm", "Lstar", "MLT", "R0"). |
Raises:
| Type | Description |
|---|---|
ValueError
|
If |
Source code in el_paso/recipes/arase/get_arase_orbit_variables.py
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 | |
el_paso.recipes.arase.process_arase_mepe.process_arase_mepe
process_arase_mepe
Process Arase MEP-e Level 3 electron flux data and save derived products.
Downloads the corresponding Arase orbit data (Level 3 if use_level_3_orbit_data is True,
otherwise Level 2) and the daily Arase MEP-e Level 3 pitch-angle resolved flux (FEDU) CDF
files for the requested time range, then sorts energies into ascending order, time-bins the
flux, position and pitch-angle variables onto a common cadence, folds the pitch-angle
distribution, applies a lower flux threshold, and computes the equatorial pitch angle and
magnetic-field-related quantities (Lm, MLT, R0) either from the Level 3 orbit data directly
or via IRBEM using the SM position from Level 2 orbit data. The resulting variables are
saved using the requested saving strategy.
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 |
mag_field
|
Literal['T89', 'TS04', 'OP77Q']
|
The magnetic field model used for the magnetic-field-related output variables. |
required |
raw_data_path
|
str | Path
|
Directory where downloaded raw data files are stored. Defaults to ".". |
'.'
|
processed_data_path
|
str | Path
|
Base directory where the processed output data is saved. Defaults to ".". |
'.'
|
num_cores
|
int
|
Number of CPU cores used for the IRBEM magnetic field
computations (only used when |
4
|
cadence
|
timedelta
|
Time binning cadence applied to all variables. Defaults to timedelta(minutes=5). |
timedelta(minutes=5)
|
save_strategy
|
Literal['gfz', 'h5', 'netcdf']
|
The saving strategy used to write the processed data. Defaults to "gfz". |
'gfz'
|
data_standard
|
Literal['gfz', 'prbem']
|
The data standard used when saving the processed data. Defaults to "gfz". |
'gfz'
|
use_level_3_orbit_data
|
bool
|
If True, use Arase Level 3 orbit data (which
already contains precomputed magnetic field
quantities for |
True
|
Source code in el_paso/recipes/arase/process_arase_mepe.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 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 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 | |
el_paso.recipes.arase.process_arase_pwe_densities.process_arase_pwe_density
process_arase_pwe_density
Process Arase PWE/HFA electron density data and save the mapped equatorial density.
Downloads the Arase Level 2 orbit data and the daily Arase PWE/HFA Level 3 1-minute electron
density CDF files for the requested time range, time-bins the density and the SM position
onto a common cadence, applies a lower density threshold, converts the position to GEO
coordinates, computes the magnetic-field-related quantities (MLT, equatorial radial distance
and equatorial position) via IRBEM for the given mag_field, maps the local density to the
magnetic equator, and saves the resulting variables using a DensityNetCDFStrategy.
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 |
mag_field
|
Literal['T89', 'TS04', 'OP77Q']
|
The magnetic field model used for the magnetic-field-related output variables and the equatorial density mapping. |
required |
raw_data_path
|
str | Path
|
Directory where downloaded raw data files are stored. Defaults to ".". |
'.'
|
processed_data_path
|
str | Path
|
Base directory where the processed output data is saved. Defaults to ".". |
'.'
|
num_cores
|
int
|
Number of CPU cores used for the IRBEM magnetic field computations. Defaults to 4. |
4
|
cadence
|
timedelta
|
Time binning cadence applied to all variables. Defaults to timedelta(minutes=5). |
timedelta(minutes=5)
|
Source code in el_paso/recipes/arase/process_arase_pwe_densities.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 | |
el_paso.recipes.arase.process_arase_xep_realtime.process_arase_xep_real_time
process_arase_xep_real_time
Process Arase XEP real-time electron flux data and save derived products.
Downloads (unless download is False) and extracts the daily Arase real-time XEP
omnidirectional flux (FEDO) text files and the real-time orbit position text files for the
requested time range, converts the orbit position from SM to GEO coordinates, time-bins the
flux and position variables onto a 5-minute cadence, computes magnetic-field-related
quantities (B_Calc, B_Eq, MLT, R_Eq, Alpha_Eq, L_star, L_m, InvMu, InvK) for the T89 model via
IRBEM, constructs a pitch-angle distribution (FEDU) from the omnidirectional flux, applies a
lower flux threshold, computes the electron phase space density, and saves the resulting
variables using the requested saving strategy/strategies.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
processed_data_path
|
str | Path
|
Base directory where the processed output data is saved. |
required |
download_data_dir
|
str | Path
|
Base directory where downloaded raw data files are stored. |
required |
start_time
|
datetime
|
Start of the time range to process. |
required |
end_time
|
datetime
|
End of the time range to process. |
required |
erg_user
|
str | None
|
Username for the ERG data server. If None, it is read
from the |
None
|
erg_password
|
str | None
|
Password for the ERG data server. If None, it is
read from the |
None
|
num_cores
|
int
|
Number of CPU cores used for the IRBEM magnetic field computations. Defaults to 32. |
32
|
save_strategy
|
Literal['gfz', 'netcdf', 'both']
|
Which saving strategy/strategies to use for writing the processed data. Defaults to "netcdf". |
'netcdf'
|
download
|
bool
|
Whether to download the raw data files before processing. Defaults to True. |
True
|
skip_existing
|
bool
|
Whether to skip downloading files that already exist locally. Defaults to True. |
True
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If |
Source code in el_paso/recipes/arase/process_arase_xep_realtime.py
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 | |