Skip to content

Commit 737bd75

Browse files
committed
Got to version 2
1 parent 5a5a1c2 commit 737bd75

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

level1c4pps/isccpng2pps_lib.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ def homogenize_channel(scene, wmo_id, illum, band, sol_zen):
172172
data = scene[band]
173173
dwmo_id = scene["wmo_id"].values
174174
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]
177177
logger.info(
178178
f"Homogenizing channel {band} for {satellite_names[wmo_id]} for illum:{illum}"
179179
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):
182182
update = ((dwmo_id == wmo_id) & (data > 0) & (sol_zen < dn_discr))
183183
scene[band].values = np.where(update, scene[band].values * k + c, scene[band].values)
184184

185-
if (illum == '_day'):
185+
if (illum == '_nig'):
186186
update = ((dwmo_id == wmo_id) & (data > 0) & (sol_zen >= dn_discr))
187187
scene[band].values = np.where(update, scene[band].values * k + c, scene[band].values)
188188

@@ -193,7 +193,7 @@ def homogenize(scene):
193193
for band in BANDNAMES:
194194
for wmo_id in [270, 271, 173, 55]:
195195
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)
197197

198198
def recalibrate_meteosat(scene):
199199
"""Nominal calibration is applied, redo with meirnik calibration."""

0 commit comments

Comments
 (0)