12 jlogger.info(
'HWRF Final Merge is starting.')
16 logger=hwrf_expt.conf.log(
'exhwrf_final_merge')
19 run_multistorm=conf.getbool(
'config',
'run_multistorm',
False)
20 fakestormid=conf.getstr(
'config',
'fakestormid',
'nofakeid')
21 stormid=conf.getstr(
'config',
'STID',
'nostid')
22 multistorm_sids=conf.getstr(
'config',
'multistorm_sids',
'nosids')
24 if not run_multistorm:
25 fail(
"CAN NOT Run Final Merge. Set 'run_multistorm=yes' in" + \
26 " hwrf_basic.conf and then run launcher task.")
27 elif stormid==
'nostid':
28 logger.error(
"ERROR: Final Merge no 'STID' defined.")
30 elif fakestormid==
'nofakeid':
31 logger.error(
"ERROR: Final Merge no 'fakestormid' defined in conf file.")
35 elif multistorm_sids==
'nosids':
36 logger.error(
"ERROR: Final Merge no 'multistorm_sids' defined in conf file.")
38 elif not fakestormid.upper() == stormid.upper():
39 logger.error(
"ERROR: Final merge can only run on "
40 "your defined 'fakestormid': %s. This is "
41 "'STID' %s"%(fakestormid, stormid))
44 jlogger.info(
'Basic Final Merge Checks passed. Proceed with Running Final Merge.')
46 hwrf_expt.finalmerge.run()
48 jlogger.info(
'Final Merge has completed.')
51 if __name__==
'__main__':
55 except Exception
as e:
56 jlogger.critical(
'HWRF final merge is aborting: '+str(e),exc_info=
True)
def main()
Based on the configuration, write an ensda flag file that will either request, or not request...
Contains setup(), which initializes the produtil package.
def init_module
Initializes the HWRF object structure.
def setup(ignore_hup=False, dbnalert_logger=None, jobname=None, cluster=None, send_dbn=None, thread_logger=False, thread_stack=2 **24, kwargs)
Initializes the produtil package.