HWRF  trunk@4391
Classes | Functions | Variables
hwrf.post Namespace Reference

Runs the Unified Post Processor on outputs from the WRF-NMM, producing E grid GRIB files as EGRIB1Product objects. More...

Detailed Description

Runs the Unified Post Processor on outputs from the WRF-NMM, producing E grid GRIB files as EGRIB1Product objects.

Classes

class  EGRIB1Product
 Represents an E grid WRF-NMM GRIB1 file, and stores two metadata values: CENLA and CENLO which contain the domain center location. More...
 
class  PostManyWRF
 A wrapper around PostOneWRF that posts many WRF output times. More...
 
class  PostOneWRF
 This is an HWRFTask that post-processes output data for a single WRF stream, from several WRF domains at a a given time. More...
 

Functions

def check_post (retval, what, logger)
 Did the post run successfully in the current working directory? More...
 
def link_post_fix
 Links or copies all fix files for the post to the current working directory. More...
 

Variables

list __all__
 List of symbols exported by "from hwrf.post import *". More...
 
 wrf_hr_min = fcst_hr_min
 References a function that converts forecast and analysis times to the number of hours and minutes between them. More...
 

Function Documentation

def hwrf.post.check_post (   retval,
  what,
  logger 
)

Did the post run successfully in the current working directory?

Checks the current working directory and the specified return value retval from the post to determine if the post succeeded. Returns a four-element tuple (ok,cenla,cenlo,filename) where "ok" is True if the post succeded, (cenla,cenlo) is the domain center and filename is the name of the post output file.

Parameters
retvalthe post return value
whatfor log messages: what was posted?
loggerthe logging.Logger for log messages

Definition at line 29 of file post.py.

def hwrf.post.link_post_fix (   fixd,
  needcrtm,
  logger = None,
  copy = False 
)

Links or copies all fix files for the post to the current working directory.

Parameters
fixdthe fix directory
needcrtmflag: is the CRTM data needed?
loggerthe logging.Logger for log messages

Definition at line 109 of file post.py.

Referenced by hwrf.post.PostOneWRF.link_fix().

Variable Documentation

hwrf.post.__all__
Initial value:
1 = ['PostOneWRF','PostManyWRF','EGRIB1Product','check_post',
2  'link_post_fix']

List of symbols exported by "from hwrf.post import *".

Definition at line 6 of file post.py.

hwrf.post.wrf_hr_min = fcst_hr_min

References a function that converts forecast and analysis times to the number of hours and minutes between them.

Definition at line 152 of file post.py.

Referenced by hwrf.post.PostManyWRF.taskname_for().