@@ -172,8 +172,8 @@ def homogenize_channel(scene, wmo_id, illum, band, sol_zen):
172
172
data = scene [band ]
173
173
dwmo_id = scene ["wmo_id" ].values
174
174
ch_index = coef_slope_chan .index (band )
175
- k = coef_slope_list_v1 [str (wmo_id ) + illum ][ch_index ]
176
- c = coef_offset_list_v1 [str (wmo_id ) + illum ][ch_index ]
175
+ k = coef_slope_list [str (wmo_id ) + illum ][ch_index ]
176
+ c = coef_offset_list [str (wmo_id ) + illum ][ch_index ]
177
177
logger .info (
178
178
f"Homogenizing channel { band } for { satellite_names [wmo_id ]} for illum:{ illum } "
179
179
f" with respect to SEVIRI on MSG4 using y={ k } * x + { c } " )
@@ -182,7 +182,7 @@ def homogenize_channel(scene, wmo_id, illum, band, sol_zen):
182
182
update = ((dwmo_id == wmo_id ) & (data > 0 ) & (sol_zen < dn_discr ))
183
183
scene [band ].values = np .where (update , scene [band ].values * k + c , scene [band ].values )
184
184
185
- if (illum == '_day ' ):
185
+ if (illum == '_nig ' ):
186
186
update = ((dwmo_id == wmo_id ) & (data > 0 ) & (sol_zen >= dn_discr ))
187
187
scene [band ].values = np .where (update , scene [band ].values * k + c , scene [band ].values )
188
188
@@ -193,7 +193,7 @@ def homogenize(scene):
193
193
for band in BANDNAMES :
194
194
for wmo_id in [270 , 271 , 173 , 55 ]:
195
195
homogenize_channel (scene , wmo_id , '_day' , band , sol_zen )
196
- # homogenize_channel(scene, wmo_id, '_nig', band, sol_zen)
196
+ homogenize_channel (scene , wmo_id , '_nig' , band , sol_zen )
197
197
198
198
def recalibrate_meteosat (scene ):
199
199
"""Nominal calibration is applied, redo with meirnik calibration."""
0 commit comments