diff --git a/modules/deeplearning/srcnn_l1b_l2.py b/modules/deeplearning/srcnn_l1b_l2.py index 483bcacd0b9e0a7c2a71ed31ad29092975f6b16c..880a72e4599d79cf548943dee3e2f5676b0664d3 100644 --- a/modules/deeplearning/srcnn_l1b_l2.py +++ b/modules/deeplearning/srcnn_l1b_l2.py @@ -707,11 +707,11 @@ def run_evaluate_static(in_file, out_file, ckpt_dir): return out_sr -def analyze(): - h5f = h5py.File('/Users/tomrink/clavrx_snpp_viirs.A2019071.0000.001.2019071061610.uwssec_B00038187.level2.h5', 'r') +def analyze(fpath='/Users/tomrink/clavrx_snpp_viirs.A2019080.0100.001.2019080064252.uwssec_B00038315.level2.h5'): + h5f = h5py.File(fpath, 'r') grd = get_grid_values_all(h5f, 'cloud_fraction') grd = np.where(np.isnan(grd), 0, grd) - grd = grd[1600:, 400:1200] + # grd = grd[1600:, 400:1200] print(grd.shape) grd_lr = grd[::2, ::2]