10 from hwrf.gsi import unset_gsistatus, set_gsistatus
13 """!Logs an error message to the produtil.log.jlogger and exits with status 2.
14 @param msg the string error message to log."""
19 """!Runs the bufrprep task in hwrf_expt, a hwrf.bufrprep.Bufrprep.
20 Creates the GSI status file, setting run_gsi_d0* variables to YES
21 if the GSI is enabled for each domain."""
25 logger=conf.log(
'exhwrf_bufrprep')
26 unset_gsistatus(conf,logger)
28 if hwrf_expt.conf.getbool(
'config',
'run_gsi'):
29 hwrf_expt.bufrprep.run()
31 jlogger.info(
'GSI is disabled. This job need not be run.')
33 set_gsistatus(conf,logger)
35 if __name__==
'__main__':
39 except Exception
as e:
40 jlogger.critical(
'HWRF bufrprep is aborting: '+str(e),exc_info=
True)
def fail(msg)
Logs an error message to the produtil.log.jlogger and exits with status 2.
Contains setup(), which initializes the produtil package.
def main()
Runs the bufrprep task in hwrf_expt, a hwrf.bufrprep.Bufrprep.
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.
Runs the GSI data assimilation on the HWRF system.
Provides information about the cluster on which this job is running.