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

low-level wrf implementation, underlying hwrf.wrf More...

Detailed Description

low-level wrf implementation, underlying hwrf.wrf

This module contains low-level classes that underlie the implementation of the hwrf.wrf module. It also contains the WRFOutput class, which is used to describe a WRF output file, and the parse_wrf_outname, which turns WRF-style filename formats (wrfout_d<domain>_<date>) into filenames.

Classes

class  WRFDomainBase
 superclass of WRFDomain More...
 
class  WRFDomains
 abstract base class of WRFSimulation More...
 
class  WRFOutput
 A class that provides information about WRF output and input files. More...
 

Functions

def parse_wrf_outname (outname, grid_id, date, nocolons)
 generates wrf filenames from templates like construct_filename More...
 

Variables

list __all__ = ['parse_wrf_outname','WRFOutput','WRFDomainBase','WRFDomains']
 the symbols exported by "from hwrf.wrfbase import *"
 

Function Documentation

def hwrf.wrfbase.parse_wrf_outname (   outname,
  grid_id,
  date,
  nocolons 
)

generates wrf filenames from templates like construct_filename

Takes a wrf outname, a grid_id and a date and produces the final string outname. The mandatory boolean argument nocolons is set to the namelist &time_control nocolons value. This mimics the construct_filename family of functions in the WRF source code.

Parameters
outnamethe filename format as passed to WRF
grid_idthe integer grid ID
datethe date (anything accepted by hwrf.numerics.to_datetime)
nocolonsif True, colons in the date are converted to underscores
Returns
the string filename

Definition at line 21 of file wrfbase.py.

Referenced by hwrf.fcsttask.WRFAnl2WRF.get_inputs().