|
22 | 22 | goes16_filepath_nc = get_test_filepath(
|
23 | 23 | "sci_xrsf-l2-flx1s_g16_d20170910_v2-1-0_truncated.nc"
|
24 | 24 | ) # test the GOES-R data
|
| 25 | +goes18_filepath_nc = get_test_filepath( |
| 26 | + "sci_xrsf-l2-flx1s_g18_d20250328_v2-2-0_truncated.nc" |
| 27 | +) # test the GOES-18 data (following updated chianti file) |
| 28 | + |
25 | 29 |
|
26 | 30 |
|
27 | 31 | @pytest.mark.parametrize(
|
|
30 | 34 | (goes15_fits_filepath, 11.9 * u.MK),
|
31 | 35 | (goes15_filepath_nc, 21.6 * u.MK),
|
32 | 36 | (goes16_filepath_nc, 21.9 * u.MK),
|
| 37 | + (goes18_filepath_nc, 14.0 * u.MK), |
33 | 38 | ],
|
34 | 39 | )
|
35 | 40 | @pytest.mark.remote_data
|
@@ -90,6 +95,16 @@ def test_calculate_temperature_emiss_no_primary_detector_columns_GOESR():
|
90 | 95 | goes.calculate_temperature_em(goeslc_removed_col)
|
91 | 96 |
|
92 | 97 |
|
| 98 | +@pytest.mark.remote_data |
| 99 | +def test_satellite_number_supported(): |
| 100 | + goeslc = timeseries.TimeSeries(goes16_filepath_nc) |
| 101 | + |
| 102 | + # setting id to have a "fake" name with GOES satellite number of 21 (unsupported) |
| 103 | + goeslc.meta.metas[0]["id"] = "sci_xrsf-l2-flx1s_g21_d20260101_v2-2-0.nc" |
| 104 | + with pytest.raises(ValueError, match="GOES satellite number has to be between 1 and 19, 21 was found."): |
| 105 | + goes.calculate_temperature_em(goeslc) |
| 106 | + |
| 107 | + |
93 | 108 | # We also test against the IDL outputs for the GOES-15 and 16 test files
|
94 | 109 | idl_chianti_tem_15 = get_test_filepath("goes_15_test_chianti_tem_idl.sav")
|
95 | 110 | idl_chianti_tem_16 = get_test_filepath("goes_16_test_chianti_tem_idl.sav")
|
|
0 commit comments