HWRF  trunk@4391
Classes | Functions | Variables
scripts.exhwrf_output Namespace Reference

Delivers data to the COM directory or elsewhere. More...

Detailed Description

Delivers data to the COM directory or elsewhere.

This script implements data delivery functionality specific to the NCEP HWRF system. It is run after everything except archiving, and it copies the output of some prior jobs to the COM directory under different names. In the operational HWRF, this job is also supposed to email the NOAA Senior Duty Meteorologist the HWRF AFOS file. However, that functionality is intentionally left out at the moment.

This job is written specifically for the 2013, 2014 and 2015 operational HWRF systems. It does recognize the run_gsi, run_ocean and run_relocation options, but it will need to be modified to handle other configurations. However, this job is optional. If you do not run this job, the later archiving and graphics jobs will still run correctly.

Classes

class  Deliverer
 A utility class for delivering files. More...
 

Functions

def deliver_multi (sourceglob, target, logger)
 Delivers several files to a target directory, logging messages as it goes. More...
 
def main ()
 Delivers HWRF files to COM.
 

Variables

 copier = None
 The copier is a function that returns either None, or a callable object suitable for passing into the deliver_file to compress while copying. More...
 

Function Documentation

def scripts.exhwrf_output.deliver_multi (   sourceglob,
  target,
  logger 
)

Delivers several files to a target directory, logging messages as it goes.

Parameters
sourceglobthe glob (from glob.glob()) that lists the input files
targetthe target directory
loggera logging.Logger for messages
Returns
the number of files delivered

Definition at line 36 of file exhwrf_output.py.

Referenced by scripts.exhwrf_output.Deliverer.deliver_file().

Variable Documentation

scripts.exhwrf_output.copier = None

The copier is a function that returns either None, or a callable object suitable for passing into the deliver_file to compress while copying.

It is actually just a pointer to hwrf_expt.wrfcopier.copier, created in the "main" function after initializing the hwrf_expt module.

Definition at line 34 of file exhwrf_output.py.

Referenced by scripts.exhwrf_output.deliver_multi().