diff --git a/modules/util/viirs_l1b_l2.py b/modules/util/viirs_l1b_l2.py index b92c1f6e2bca80e0fc3df731ea678a311b7dc61b..4cbe604dbd045c3a889dd9b1701f1cd96844bb07 100644 --- a/modules/util/viirs_l1b_l2.py +++ b/modules/util/viirs_l1b_l2.py @@ -1,6 +1,6 @@ import numpy as np import h5py -from util.util import get_grid_values, get_grid_values_all, is_night, is_day, compute_lwc_iwc +from util.util import get_grid_values, get_grid_values_all, is_night, is_day, compute_lwc_iwc, get_fill_attrs import glob import os from aeolus.datasource import CLAVRx_VIIRS @@ -177,8 +177,9 @@ def run(data_h5f, param_s, tiles, tile_width=64, kernel_size=9): grd_s = [] for param in param_s: + fill_value, fill_value_name = get_fill_attrs(param) try: - grd = get_grid_values(data_h5f, param, 0, 0, None, num_lines, num_pixels, fill_value_name=None, fill_value=ds_fill[param]) + grd = get_grid_values(data_h5f, param, 0, 0, None, num_lines, num_pixels, fill_value_name=fill_value_name, fill_value=fill_value) grd_s.append(grd) except Exception as e: print(e)