16 """!Log a message to the produtil.log.jlogger and exit with status 2
17 @param msg the error message """
22 """!Run the hwrf.relocation.Merge."""
24 init_model=ENV.get(
'INIT_MODEL',
'GDAS1').lower()
25 if init_model!=
'gfs' and init_model!=
'gdas1':
26 fail(
'Aborting: init_model="%s" must be "gfs" or "gdas1"'
32 logger=conf.log(
'exhwrf_merge')
34 jlogger.info(
'MERGE does not need to be run for INIT_MODEL=GFS')
35 hwrf_expt.gfs_merge.run()
36 elif not hwrf_expt.conf.getbool(
'config',
'run_gsi'):
37 jlogger.info(
'GSI is disabled via configuration settings. '
38 'This job need not be run.')
42 jlogger.info(
'GSI status file claims GSI is disabled for both '
43 'domains. This job need not be run.')
46 hwrf_expt.gdas_merge.run()
48 if __name__==
'__main__':
51 jlogger.info(
'exhwrf_merge is starting')
53 jlogger.info(
'exhwrf_merge has completed')
54 except Exception
as e:
55 jlogger.critical(
'HWRF merge is aborting: '+str(e),exc_info=
True)
Contains setup(), which initializes the produtil package.
def init_module
Initializes the HWRF object structure.
def fail(msg)
Log a message to the produtil.log.jlogger and exit with status 2.
def get_gsistatus
Checks the gsi status for a specific domain.
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.
Runs the GSI data assimilation on the HWRF system.
def main()
Run the hwrf.relocation.Merge.