diff --git a/modules/util/viirs_l1b_l2.py b/modules/util/viirs_l1b_l2.py index 873efffd1203c32e3262ae978e25ea9dc3a8adb5..27657d739c631fb6871e339d6bb5b92fec6ca71b 100644 --- a/modules/util/viirs_l1b_l2.py +++ b/modules/util/viirs_l1b_l2.py @@ -49,8 +49,9 @@ def run_all(directory, out_directory): if True: w_o_ext, ext = os.path.splitext(data_f) # label_f = data_f - label_f = w_o_ext+'.highres'+ext - label_f = label_f.replace('snpp_viirs', 'VNP02MOD') + pname, fname = os.path.split(data_f) + toks = fname.split('.') + label_f = pname + '/' + 'clavrx_VNP02MOD.' + toks[1]+'.'+toks[2]+'.'+toks[3]+'.'+toks[4]+'.'+'uwssec.highres.nc.level2.nc' if not os.path.exists(label_f): continue