imap-processing 0.19.4__py3-none-any.whl → 1.0.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of imap-processing might be problematic. Click here for more details.
- imap_processing/_version.py +2 -2
- imap_processing/cdf/config/imap_codice_global_cdf_attrs.yaml +13 -1
- imap_processing/cdf/config/imap_codice_l1a_variable_attrs.yaml +44 -44
- imap_processing/cdf/config/imap_codice_l1b_variable_attrs.yaml +127 -126
- imap_processing/cdf/config/imap_codice_l2-hi-omni_variable_attrs.yaml +635 -0
- imap_processing/cdf/config/imap_codice_l2-hi-sectored_variable_attrs.yaml +422 -0
- imap_processing/cdf/config/imap_constant_attrs.yaml +1 -1
- imap_processing/cdf/config/imap_enamaps_l2-common_variable_attrs.yaml +61 -55
- imap_processing/cdf/config/imap_enamaps_l2-healpix_variable_attrs.yaml +3 -2
- imap_processing/cdf/config/imap_enamaps_l2-rectangular_variable_attrs.yaml +17 -5
- imap_processing/cli.py +6 -11
- imap_processing/codice/codice_l1a.py +42 -21
- imap_processing/codice/codice_l2.py +640 -127
- imap_processing/codice/constants.py +224 -129
- imap_processing/ena_maps/ena_maps.py +124 -70
- imap_processing/ena_maps/utils/coordinates.py +5 -0
- imap_processing/ena_maps/utils/corrections.py +268 -0
- imap_processing/ena_maps/utils/map_utils.py +143 -42
- imap_processing/hi/hi_l2.py +10 -15
- imap_processing/ialirt/constants.py +7 -1
- imap_processing/ialirt/generate_coverage.py +1 -1
- imap_processing/ialirt/l0/ialirt_spice.py +1 -1
- imap_processing/ialirt/l0/parse_mag.py +33 -0
- imap_processing/ialirt/l0/process_codice.py +66 -0
- imap_processing/ialirt/utils/create_xarray.py +2 -0
- imap_processing/idex/idex_l2a.py +2 -2
- imap_processing/idex/idex_l2b.py +1 -1
- imap_processing/lo/l1c/lo_l1c.py +61 -3
- imap_processing/lo/l2/lo_l2.py +79 -11
- imap_processing/mag/l1a/mag_l1a.py +2 -2
- imap_processing/mag/l1a/mag_l1a_data.py +71 -13
- imap_processing/mag/l1c/interpolation_methods.py +34 -13
- imap_processing/mag/l1c/mag_l1c.py +117 -67
- imap_processing/mag/l1d/mag_l1d_data.py +3 -1
- imap_processing/spice/geometry.py +39 -28
- imap_processing/spice/pointing_frame.py +77 -50
- imap_processing/swapi/l1/swapi_l1.py +12 -4
- imap_processing/swe/utils/swe_constants.py +7 -7
- imap_processing/ultra/l1b/extendedspin.py +1 -1
- imap_processing/ultra/l1b/ultra_l1b_culling.py +2 -2
- imap_processing/ultra/l1b/ultra_l1b_extended.py +1 -1
- imap_processing/ultra/l1c/helio_pset.py +1 -1
- imap_processing/ultra/l1c/spacecraft_pset.py +2 -2
- imap_processing/ultra/l2/ultra_l2.py +3 -3
- imap_processing-1.0.1.dist-info/METADATA +121 -0
- {imap_processing-0.19.4.dist-info → imap_processing-1.0.1.dist-info}/RECORD +49 -47
- imap_processing-0.19.4.dist-info/METADATA +0 -120
- {imap_processing-0.19.4.dist-info → imap_processing-1.0.1.dist-info}/LICENSE +0 -0
- {imap_processing-0.19.4.dist-info → imap_processing-1.0.1.dist-info}/WHEEL +0 -0
- {imap_processing-0.19.4.dist-info → imap_processing-1.0.1.dist-info}/entry_points.txt +0 -0
|
@@ -92,6 +92,26 @@ LO_SW_SPECIES_VARIABLE_NAMES = [
|
|
|
92
92
|
"heplus",
|
|
93
93
|
"cnoplus",
|
|
94
94
|
]
|
|
95
|
+
LO_SW_SOLAR_WIND_SPECIES_VARIABLE_NAMES = [
|
|
96
|
+
"hplus",
|
|
97
|
+
"heplusplus",
|
|
98
|
+
"cplus4",
|
|
99
|
+
"cplus5",
|
|
100
|
+
"cplus6",
|
|
101
|
+
"oplus5",
|
|
102
|
+
"oplus6",
|
|
103
|
+
"oplus7",
|
|
104
|
+
"oplus8",
|
|
105
|
+
"ne",
|
|
106
|
+
"mg",
|
|
107
|
+
"si",
|
|
108
|
+
"fe_loq",
|
|
109
|
+
"fe_hiq",
|
|
110
|
+
]
|
|
111
|
+
LO_SW_PICKUP_ION_SPECIES_VARIABLE_NAMES = [
|
|
112
|
+
"heplus",
|
|
113
|
+
"cnoplus",
|
|
114
|
+
]
|
|
95
115
|
LO_NSW_SPECIES_VARIABLE_NAMES = [
|
|
96
116
|
"hplus",
|
|
97
117
|
"heplusplus",
|
|
@@ -236,8 +256,9 @@ HI_COUNTERS_AGGREGATED_VARIABLE_NAMES = [
|
|
|
236
256
|
REQUIRES_DESPINNING = [
|
|
237
257
|
"imap_codice_l1a_lo-sw-angular",
|
|
238
258
|
"imap_codice_l1a_lo-nsw-angular",
|
|
239
|
-
|
|
240
|
-
"imap_codice_l1a_lo-
|
|
259
|
+
# TBD if this requires despinning
|
|
260
|
+
# "imap_codice_l1a_lo-sw-priority",
|
|
261
|
+
# "imap_codice_l1a_lo-nsw-priority",
|
|
241
262
|
]
|
|
242
263
|
|
|
243
264
|
# Energy tables for CoDICE-Hi data products. These values represent the edges
|
|
@@ -268,149 +289,158 @@ IALIRT_ENERGY_TABLE = {
|
|
|
268
289
|
|
|
269
290
|
OMNI_ENERGY_TABLE = {
|
|
270
291
|
"h": [
|
|
271
|
-
0.
|
|
272
|
-
0.
|
|
273
|
-
0.
|
|
274
|
-
0.
|
|
275
|
-
0.
|
|
276
|
-
0.
|
|
277
|
-
0.
|
|
278
|
-
0.
|
|
279
|
-
0.
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
292
|
+
0.0200000000,
|
|
293
|
+
0.0282842712,
|
|
294
|
+
0.0400000000,
|
|
295
|
+
0.0565685425,
|
|
296
|
+
0.0800000000,
|
|
297
|
+
0.1131370850,
|
|
298
|
+
0.1600000000,
|
|
299
|
+
0.2262741700,
|
|
300
|
+
0.3200000000,
|
|
301
|
+
0.4525483400,
|
|
302
|
+
0.6400000000,
|
|
303
|
+
0.9050966799,
|
|
304
|
+
1.2800000000,
|
|
305
|
+
1.8101933598,
|
|
306
|
+
2.5600000000,
|
|
307
|
+
3.6203867197,
|
|
287
308
|
],
|
|
288
309
|
"he3": [
|
|
289
|
-
0.
|
|
290
|
-
0.
|
|
291
|
-
0.
|
|
292
|
-
0.
|
|
293
|
-
0.
|
|
294
|
-
0.
|
|
295
|
-
0.
|
|
296
|
-
0.
|
|
297
|
-
0.
|
|
298
|
-
0.
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
310
|
+
0.0200000000,
|
|
311
|
+
0.0282842712,
|
|
312
|
+
0.0400000000,
|
|
313
|
+
0.0565685425,
|
|
314
|
+
0.0800000000,
|
|
315
|
+
0.1131370850,
|
|
316
|
+
0.1600000000,
|
|
317
|
+
0.2262741700,
|
|
318
|
+
0.3200000000,
|
|
319
|
+
0.4525483400,
|
|
320
|
+
0.6400000000,
|
|
321
|
+
0.9050966799,
|
|
322
|
+
1.2800000000,
|
|
323
|
+
1.8101933598,
|
|
324
|
+
2.5600000000,
|
|
325
|
+
3.6203867197,
|
|
305
326
|
],
|
|
306
327
|
"he4": [
|
|
307
|
-
0.
|
|
308
|
-
0.
|
|
309
|
-
0.
|
|
310
|
-
0.
|
|
311
|
-
0.
|
|
312
|
-
0.
|
|
313
|
-
0.
|
|
314
|
-
0.
|
|
315
|
-
0.
|
|
316
|
-
0.
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
328
|
+
0.0200000000,
|
|
329
|
+
0.0282842712,
|
|
330
|
+
0.0400000000,
|
|
331
|
+
0.0565685425,
|
|
332
|
+
0.0800000000,
|
|
333
|
+
0.1131370850,
|
|
334
|
+
0.1600000000,
|
|
335
|
+
0.2262741700,
|
|
336
|
+
0.3200000000,
|
|
337
|
+
0.4525483400,
|
|
338
|
+
0.6400000000,
|
|
339
|
+
0.9050966799,
|
|
340
|
+
1.2800000000,
|
|
341
|
+
1.8101933598,
|
|
342
|
+
2.5600000000,
|
|
343
|
+
3.6203867197,
|
|
323
344
|
],
|
|
324
345
|
"c": [
|
|
325
|
-
0.
|
|
326
|
-
0.
|
|
327
|
-
0.
|
|
328
|
-
0.
|
|
329
|
-
0.
|
|
330
|
-
0.
|
|
331
|
-
0.
|
|
332
|
-
0.
|
|
333
|
-
0.
|
|
334
|
-
0.
|
|
335
|
-
0.
|
|
336
|
-
|
|
337
|
-
1.
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
346
|
+
0.0200000000,
|
|
347
|
+
0.0282842712,
|
|
348
|
+
0.0400000000,
|
|
349
|
+
0.0565685425,
|
|
350
|
+
0.0800000000,
|
|
351
|
+
0.1131370850,
|
|
352
|
+
0.1600000000,
|
|
353
|
+
0.2262741700,
|
|
354
|
+
0.3200000000,
|
|
355
|
+
0.4525483400,
|
|
356
|
+
0.6400000000,
|
|
357
|
+
0.9050966799,
|
|
358
|
+
1.2800000000,
|
|
359
|
+
1.8101933598,
|
|
360
|
+
2.5600000000,
|
|
361
|
+
3.6203867197,
|
|
362
|
+
5.1200000000,
|
|
363
|
+
7.2407734394,
|
|
364
|
+
10.2400000000,
|
|
344
365
|
],
|
|
345
366
|
"o": [
|
|
346
|
-
0.
|
|
347
|
-
0.
|
|
348
|
-
0.
|
|
349
|
-
0.
|
|
350
|
-
0.
|
|
351
|
-
0.
|
|
352
|
-
0.
|
|
353
|
-
0.
|
|
354
|
-
0.
|
|
355
|
-
0.
|
|
356
|
-
0.
|
|
357
|
-
|
|
358
|
-
1.
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
367
|
+
0.0200000000,
|
|
368
|
+
0.0282842712,
|
|
369
|
+
0.0400000000,
|
|
370
|
+
0.0565685425,
|
|
371
|
+
0.0800000000,
|
|
372
|
+
0.1131370850,
|
|
373
|
+
0.1600000000,
|
|
374
|
+
0.2262741700,
|
|
375
|
+
0.3200000000,
|
|
376
|
+
0.4525483400,
|
|
377
|
+
0.6400000000,
|
|
378
|
+
0.9050966799,
|
|
379
|
+
1.2800000000,
|
|
380
|
+
1.8101933598,
|
|
381
|
+
2.5600000000,
|
|
382
|
+
3.6203867197,
|
|
383
|
+
5.1200000000,
|
|
384
|
+
7.2407734394,
|
|
385
|
+
10.2400000000,
|
|
365
386
|
],
|
|
366
387
|
"ne_mg_si": [
|
|
367
|
-
0.
|
|
368
|
-
0.
|
|
369
|
-
0.
|
|
370
|
-
0.
|
|
371
|
-
0.
|
|
372
|
-
0.
|
|
373
|
-
0.
|
|
374
|
-
0.
|
|
375
|
-
0.
|
|
376
|
-
0.
|
|
377
|
-
0.
|
|
378
|
-
0.
|
|
379
|
-
1.
|
|
380
|
-
1.
|
|
381
|
-
2.
|
|
382
|
-
3.
|
|
388
|
+
0.0200000000,
|
|
389
|
+
0.0282842712,
|
|
390
|
+
0.0400000000,
|
|
391
|
+
0.0565685425,
|
|
392
|
+
0.0800000000,
|
|
393
|
+
0.1131370850,
|
|
394
|
+
0.1600000000,
|
|
395
|
+
0.2262741700,
|
|
396
|
+
0.3200000000,
|
|
397
|
+
0.4525483400,
|
|
398
|
+
0.6400000000,
|
|
399
|
+
0.9050966799,
|
|
400
|
+
1.2800000000,
|
|
401
|
+
1.8101933598,
|
|
402
|
+
2.5600000000,
|
|
403
|
+
3.6203867197,
|
|
383
404
|
],
|
|
384
405
|
"fe": [
|
|
385
|
-
0.
|
|
386
|
-
0.
|
|
387
|
-
0.
|
|
388
|
-
0.
|
|
389
|
-
0.
|
|
390
|
-
0.
|
|
391
|
-
0.
|
|
392
|
-
0.
|
|
393
|
-
0.
|
|
394
|
-
0.
|
|
395
|
-
0.
|
|
396
|
-
0.
|
|
397
|
-
1.
|
|
398
|
-
1.
|
|
399
|
-
2.
|
|
400
|
-
3.
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
406
|
+
0.0200000000,
|
|
407
|
+
0.0282842712,
|
|
408
|
+
0.0400000000,
|
|
409
|
+
0.0565685425,
|
|
410
|
+
0.0800000000,
|
|
411
|
+
0.1131370850,
|
|
412
|
+
0.1600000000,
|
|
413
|
+
0.2262741700,
|
|
414
|
+
0.3200000000,
|
|
415
|
+
0.4525483400,
|
|
416
|
+
0.6400000000,
|
|
417
|
+
0.9050966799,
|
|
418
|
+
1.2800000000,
|
|
419
|
+
1.8101933598,
|
|
420
|
+
2.5600000000,
|
|
421
|
+
3.6203867197,
|
|
422
|
+
5.1200000000,
|
|
423
|
+
7.2407734394,
|
|
424
|
+
10.2400000000,
|
|
425
|
+
],
|
|
426
|
+
"uh": [
|
|
427
|
+
0.0200000000,
|
|
428
|
+
0.0282842712,
|
|
429
|
+
0.0400000000,
|
|
430
|
+
0.0565685425,
|
|
431
|
+
0.0800000000,
|
|
432
|
+
0.1131370850,
|
|
404
433
|
],
|
|
405
|
-
"
|
|
406
|
-
"junk": [0.05, 0.070710678],
|
|
434
|
+
"junk": [0.0200000000, 0.0282842712],
|
|
407
435
|
}
|
|
408
436
|
|
|
437
|
+
# In the future, we get csv file with these column:
|
|
438
|
+
# species, min_energy, max_energy, product (descriptor of the product)
|
|
409
439
|
SECTORED_ENERGY_TABLE = {
|
|
410
|
-
"h": [0.
|
|
411
|
-
"he3he4": [0.
|
|
412
|
-
"cno": [0.
|
|
413
|
-
"fe": [0.
|
|
440
|
+
"h": [0.020, 0.040, 0.080, 0.160, 0.320, 0.640, 1.280, 2.560, 5.120],
|
|
441
|
+
"he3he4": [0.020, 0.040, 0.080, 0.160, 0.320, 0.640, 1.280, 2.560, 5.120],
|
|
442
|
+
"cno": [0.020, 0.040, 0.080, 0.160, 0.320, 0.640, 1.280, 2.560, 5.120],
|
|
443
|
+
"fe": [0.020, 0.040, 0.080, 0.160, 0.320, 0.640, 1.280, 2.560, 5.120],
|
|
414
444
|
}
|
|
415
445
|
|
|
416
446
|
# Various configurations to support processing of individual data products
|
|
@@ -2185,6 +2215,30 @@ ACQUISITION_TIMES = {
|
|
|
2185
2215
|
],
|
|
2186
2216
|
}
|
|
2187
2217
|
|
|
2218
|
+
# These are for product that requires despinning in l1b.
|
|
2219
|
+
SW_INDEX_TO_POSITION = [1, 2, 3, 23, 24]
|
|
2220
|
+
NSW_INDEX_TO_POSITION = [
|
|
2221
|
+
4,
|
|
2222
|
+
5,
|
|
2223
|
+
6,
|
|
2224
|
+
7,
|
|
2225
|
+
8,
|
|
2226
|
+
9,
|
|
2227
|
+
10,
|
|
2228
|
+
11,
|
|
2229
|
+
12,
|
|
2230
|
+
13,
|
|
2231
|
+
14,
|
|
2232
|
+
15,
|
|
2233
|
+
16,
|
|
2234
|
+
17,
|
|
2235
|
+
18,
|
|
2236
|
+
19,
|
|
2237
|
+
20,
|
|
2238
|
+
21,
|
|
2239
|
+
22,
|
|
2240
|
+
]
|
|
2241
|
+
|
|
2188
2242
|
# TODO: Update EFFICIENCY value when better information is available.
|
|
2189
2243
|
# Constant for CoDICE Intensity calculations.
|
|
2190
2244
|
EFFICIENCY = 1
|
|
@@ -2225,3 +2279,44 @@ HALF_SPIN_LUT = {
|
|
|
2225
2279
|
30: [116, 117, 118, 119, 120, 121],
|
|
2226
2280
|
31: [122, 123, 124, 125, 126, 127],
|
|
2227
2281
|
}
|
|
2282
|
+
|
|
2283
|
+
NSW_POSITIONS = [x for x in range(3, 22)]
|
|
2284
|
+
SW_POSITIONS = [0]
|
|
2285
|
+
PUI_POSITIONS = [0, 1, 2, 22, 23]
|
|
2286
|
+
L2_GEOMETRIC_FACTOR = 0.013
|
|
2287
|
+
L2_HI_NUMBER_OF_SSD = 12.0
|
|
2288
|
+
|
|
2289
|
+
L2_HI_SECTORED_ANGLE = np.array(
|
|
2290
|
+
[
|
|
2291
|
+
285.00,
|
|
2292
|
+
244.11,
|
|
2293
|
+
228.69,
|
|
2294
|
+
225.00,
|
|
2295
|
+
228.69,
|
|
2296
|
+
244.11,
|
|
2297
|
+
285.00,
|
|
2298
|
+
325.89,
|
|
2299
|
+
341.31,
|
|
2300
|
+
345.00,
|
|
2301
|
+
341.31,
|
|
2302
|
+
325.89,
|
|
2303
|
+
]
|
|
2304
|
+
)
|
|
2305
|
+
|
|
2306
|
+
HI_L2_ELEVATION_ANGLE = np.array(
|
|
2307
|
+
[
|
|
2308
|
+
150.0,
|
|
2309
|
+
138.6,
|
|
2310
|
+
115.7,
|
|
2311
|
+
90.0,
|
|
2312
|
+
64.3,
|
|
2313
|
+
41.4,
|
|
2314
|
+
30.0,
|
|
2315
|
+
41.4,
|
|
2316
|
+
64.3,
|
|
2317
|
+
90.0,
|
|
2318
|
+
115.7,
|
|
2319
|
+
138.6,
|
|
2320
|
+
],
|
|
2321
|
+
dtype=float,
|
|
2322
|
+
)
|