Skip to content
Snippets Groups Projects
Commit c93e2d55 authored by tomrink's avatar tomrink
Browse files

minor

parent 88ea29a8
Branches
No related tags found
No related merge requests found
...@@ -9,8 +9,11 @@ emis_params = ['temp_10_4um_nom', 'temp_11_0um_nom', 'temp_12_0um_nom', 'temp_13 ...@@ -9,8 +9,11 @@ emis_params = ['temp_10_4um_nom', 'temp_11_0um_nom', 'temp_12_0um_nom', 'temp_13
'temp_6_7um_nom'] 'temp_6_7um_nom']
l2_params = ['cloud_fraction', 'cld_temp_acha', 'cld_press_acha'] l2_params = ['cloud_fraction', 'cld_temp_acha', 'cld_press_acha']
data_params = ['cloud_fraction'] # data_params = ['cloud_fraction']
label_params = ['cloud_fraction'] # label_params = ['cloud_fraction']
data_params = ['observation_data/M15']
label_params = ['observation_data/M15_highres']
def run_all(directory, out_directory): def run_all(directory, out_directory):
...@@ -20,8 +23,8 @@ def run_all(directory, out_directory): ...@@ -20,8 +23,8 @@ def run_all(directory, out_directory):
if not p.is_dir(): if not p.is_dir():
continue continue
data_files = glob.glob(directory + p.name+'/'+'clavrx_snpp_viirs*.uwssec*.nc') # data_files = glob.glob(directory + p.name+'/'+'clavrx_snpp_viirs*.uwssec*.nc')
# data_files = glob.glob(directory + p.name + '/' + 'VNP02MOD*.uwssec.nc') data_files = glob.glob(directory + p.name + '/' + 'VNP02MOD*.uwssec.nc')
label_valid_tiles = [] label_valid_tiles = []
label_train_tiles = [] label_train_tiles = []
...@@ -34,7 +37,7 @@ def run_all(directory, out_directory): ...@@ -34,7 +37,7 @@ def run_all(directory, out_directory):
if True: if True:
w_o_ext, ext = os.path.splitext(data_f) w_o_ext, ext = os.path.splitext(data_f)
label_f = w_o_ext+'.highres'+ext label_f = w_o_ext+'.highres'+ext
label_f = label_f.replace('snpp_viirs', 'VNP02MOD') # label_f = label_f.replace('snpp_viirs', 'VNP02MOD')
if not os.path.exists(label_f): if not os.path.exists(label_f):
continue continue
print(data_f) print(data_f)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment