Skip to content

Commit e8d5b21

Browse files
committed
added lwcl_check option to main
1 parent 4f43e45 commit e8d5b21

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

mwr_raw2l1/main.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,15 @@ def run(inst_config_file, nc_format_config_file=None, qc_config_file=None, conca
5858
conf_inst = get_inst_config(inst_config_file)
5959
conf_nc = get_nc_format_config(nc_format_config_file)
6060
conf_qc = get_qc_config(qc_config_file)
61+
try:
62+
if conf_inst['lwcl_check'] and 'do_check' in conf_inst['lwcl_check']:
63+
logger.info('Liquid cloud check activated for this instrument.')
64+
conf_qc['lwcl_check'] = True
65+
conf_qc['lwcl_multiplying_factor'] = conf_inst['lwcl_check']['multiplying_factor']
66+
except KeyError:
67+
conf_qc['lwcl_check'] = False
68+
conf_qc['lwcl_multiplying_factor'] = None
69+
logger.info('No liquid cloud check configured in instrument config file.')
6170

6271
reader = get_reader(conf_inst['reader'])
6372
meas_constructor = get_meas_constructor(conf_inst['meas_constructor'])

0 commit comments

Comments
 (0)