Skip to content

Commit a960243

Browse files
author
Menlo Innovations - CAVA Project
committed
Harrison #39 - PMCL- Hi CG-correction: Interpolate GLOWS to exact spacecraft-frame energy bin to match Lo behavior
Previously we used the closest ESA step centerpoint
1 parent c42ecb3 commit a960243

3 files changed

Lines changed: 5 additions & 8 deletions

File tree

imap_l3_processing/maps/rectangular_survival_probability.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,7 @@ def __init__(self, l1c_dataset: InputRectangularPointingSet, sensor: Sensor, spi
102102
break
103103
exposure[0, cg_energy_index[0], cg_energy_index[1]] = l1c_dataset.exposure_times[
104104
0, best_guess_index, cg_energy_index[1]]
105-
if sensor in [Sensor.Lo, Sensor.Lo90]:
106-
best_match_energies[0, cg_energy_index[0], cg_energy_index[1]] = cg_energy / 1000
107-
else:
108-
best_match_energies[0, cg_energy_index[0], cg_energy_index[1]] = energies[best_guess_index]
105+
best_match_energies[0, cg_energy_index[0], cg_energy_index[1]] = cg_energy / 1000
109106

110107
else:
111108
self.az_el_points = hae_az_el_points

tests/maps/test_rectangular_survival_probability.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ def test_survivals_matched_with_corresponding_exposures(self, mock_interpolate):
412412
@patch("imap_l3_processing.maps.rectangular_survival_probability.apply_compton_getting_correction")
413413
def test_survivals_matched_with_corresponding_exposures_cg_corrected(self, mock_cg_correction, mock_interpolate):
414414
test_cases = [
415-
(Sensor.Hi90, np.array([1, 2, 3])),
415+
(Sensor.Hi90, np.array([1.25, 1.85, 3])),
416416
(Sensor.Lo, np.array([1.25, 1.85, 3])),
417417
]
418418

tests/periodically_run_tests.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"test_l3bcde_first_time_processing": "2026-03-05T09:59:10.392514",
3-
"test_spectral_fit_against_validation_data": "2026-03-16T11:10:15.284967",
2+
"test_l3bcde_first_time_processing": "2026-03-19T13:31:57.152750",
3+
"test_spectral_fit_against_validation_data": "2026-03-19T16:58:54.969370",
44
"test_calculate_pickup_ions_with_minimize": "2026-03-16T08:50:14.379057",
5-
"test_ultra_all_sp_maps": "2026-03-16T11:12:44.353802",
5+
"test_ultra_all_sp_maps": "2026-03-19T17:01:07.391919",
66
"test_ultra_combined_maps": null,
77
"test_ultra_combined_nsp_maps": "2026-03-13T13:14:24.831481",
88
"test_ultra_combined_sp_maps": "2026-03-13T13:14:37.889683",

0 commit comments

Comments
 (0)