From b0458c84e66893e6de676c4deeff83dfc7813da5 Mon Sep 17 00:00:00 2001 From: Panu Lahtinen Date: Mon, 2 Sep 2024 11:35:54 +0300 Subject: [PATCH] Convert IR calibration variables to float32 --- satpy/readers/aapp_l1b.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/satpy/readers/aapp_l1b.py b/satpy/readers/aapp_l1b.py index aed70ae0fe..f22c552b25 100644 --- a/satpy/readers/aapp_l1b.py +++ b/satpy/readers/aapp_l1b.py @@ -646,15 +646,17 @@ def _ir_calibrate(header, data, irchn, calib_type, mask=True): mask &= rad > 0.0 return da.where(mask, rad, np.nan) + radtempcnv = header["radtempcnv"].astype(np.float32) + # Central wavenumber: - cwnum = header["radtempcnv"][0, irchn, 0] + cwnum = radtempcnv[0, irchn, 0] if irchn == 0: cwnum = cwnum / 1.0e2 else: cwnum = cwnum / 1.0e3 - bandcor_2 = header["radtempcnv"][0, irchn, 1] / 1e5 - bandcor_3 = header["radtempcnv"][0, irchn, 2] / 1e6 + bandcor_2 = radtempcnv[0, irchn, 1] / 1e5 + bandcor_3 = radtempcnv[0, irchn, 2] / 1e6 ir_const_1 = 1.1910659e-5 ir_const_2 = 1.438833