diff --git a/modules/deeplearning/srcnn_l1b_l2.py b/modules/deeplearning/srcnn_l1b_l2.py index b963d5f240b4c8df274e9073523f39fc85222655..9c6af126bc9e681b33117fa626794a80bf416fa3 100644 --- a/modules/deeplearning/srcnn_l1b_l2.py +++ b/modules/deeplearning/srcnn_l1b_l2.py @@ -715,9 +715,9 @@ def run_evaluate_static(in_file, out_file, ckpt_dir): return out_sr -def analyze(fpath='/Users/tomrink/clavrx_snpp_viirs.A2019080.0100.001.2019080064252.uwssec_B00038315.level2.h5'): +def analyze(fpath='/Users/tomrink/clavrx_snpp_viirs.A2019080.0100.001.2019080064252.uwssec_B00038315.level2.h5', param='cloud_fraction'): h5f = h5py.File(fpath, 'r') - grd = get_grid_values_all(h5f, 'cloud_fraction') + grd = get_grid_values_all(h5f, param) grd = np.where(np.isnan(grd), 0, grd) bt = get_grid_values_all(h5f, 'temp_11_0um_nom') refl = get_grid_values_all(h5f, 'refl_0_65um_nom')