HWRF  trunk@4391
Classes | Functions
hwrf_alerts Namespace Reference

This module contains the track delivery function and all dbn alerts in the HWRF system. More...

Detailed Description

This module contains the track delivery function and all dbn alerts in the HWRF system.

It is intended to sit on top of the ush/hwrf_expt.py as the NCO alert and NHC data delivery module. Generally the functions in this module are run by the scripts/ex*.py programs just before handing control over to the hwrf_expt package.

Classes

class  TrackDeliveryFailed
 Raised when the send_nhc_track() is unable to deliver the track file. More...
 

Functions

def send_nhc_track (args, kwargs)
 Sends the track file to special NHC disk locations on the WCOSS supercomputer. More...
 
def add_wave_alerts ()
 DBN ALERTS #########################################################. More...
 
def add_regrib_alerts ()
 Adds dbn alerts for GRIB products by adding DBNAlert objects to the hwrf_expt.gribber. More...
 
def email_afos_to_sdm (afos, args, kwargs)
 Emails the AFOS file to the NOAA Senior Duty Meterologist (SDM) More...
 
def add_nhc_alerts ()
 Adds dbn alerts for the hwrf_nhc_products program's output by adding DBNAlert objects to the hwrf_expt.nhcp object's Products. More...
 
def add_tracker_alerts ()
 Adds dbn alerts for the tracker and requests delivery of the tracker to NHC deck locations. More...
 

Function Documentation

def hwrf_alerts.add_nhc_alerts ( )

Adds dbn alerts for the hwrf_nhc_products program's output by adding DBNAlert objects to the hwrf_expt.nhcp object's Products.

Definition at line 251 of file hwrf_alerts.py.

Referenced by scripts.exhwrf_products.doit(), and scripts.exhwrf_output.main().

def hwrf_alerts.add_regrib_alerts ( )

Adds dbn alerts for GRIB products by adding DBNAlert objects to the hwrf_expt.gribber.

Adds calls to the dbnet alerts so that GRIB files will be delivered to the NCEP FTP server.

Definition at line 123 of file hwrf_alerts.py.

Referenced by scripts.exhwrf_products.doit(), scripts.exhwrf_output.main(), and scripts.exhwrf_products.slave_main().

def hwrf_alerts.add_tracker_alerts ( )

Adds dbn alerts for the tracker and requests delivery of the tracker to NHC deck locations.

Definition at line 266 of file hwrf_alerts.py.

Referenced by scripts.exhwrf_products.slave_main().

def hwrf_alerts.add_wave_alerts ( )

DBN ALERTS #########################################################.

Adds dbn alerts for the WRF program's wrfdiag files, which are used by the downstream wave model.

Ensures the wrfdiag files have the necessary dbn_alerts to trigger delivery to the NCEP FTP server and ecFlow events (if required). Those files will be delivered by the NHCProducts object at the end of the JHWRF_PRODUCTS job, after the hwrf_nhc_products program completes. We run the hwrf_nhc_products program before delivering the wrfdiag files to ensure that the files are plausable before delivering them to the wave model.

Definition at line 99 of file hwrf_alerts.py.

Referenced by scripts.exhwrf_products.doit(), and scripts.exhwrf_output.main().

def hwrf_alerts.email_afos_to_sdm (   afos,
  args,
  kwargs 
)

Emails the AFOS file to the NOAA Senior Duty Meterologist (SDM)

This function is called from scripts.exhwrf_output to email the AFOS file (simplified track file) to the Senior Duty Meteorologist (NOAA SDM). It is controlled by a number of environment variables, requested by NCEP Central Operations:

  • EMAIL_SDM=YES/NO — turn on or off the email
  • HWRF_TRACK_EMAIL_LIST=(list of emails) — list of email addresses to receive the AFOS file.
  • HWRF_EMAIL_SSH_MACHINE — no longer used. This was the machine to ssh into, to send the mail. The mail is now sent directly from the machine running the exhwrf_output script.

The following configuration settings have the same meaning as the environment variables:

  • [config] email_sdm = $EMAIL_SDM
  • [config] track_email_list = $HWRF_TRACK_EMAIL_LIST
  • [config] email_ssh_machine = $HWRF_EMAIL_SSH_MACHINE

In all cases, the environment variables override the config file settings (again, by request of NCO).

Definition at line 171 of file hwrf_alerts.py.

Referenced by scripts.exhwrf_output.main().

def hwrf_alerts.send_nhc_track (   args,
  kwargs 
)

Sends the track file to special NHC disk locations on the WCOSS supercomputer.

Parameters
args,kwargsIgnored.
Note
This does not sort the track file, and does not grep out the correct storm, since that is already done before this function starts.

Definition at line 24 of file hwrf_alerts.py.