HWRF
trunk@4391
|
low-level wrf implementation, underlying hwrf.wrf More...
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 *" | |
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.
outname | the filename format as passed to WRF |
grid_id | the integer grid ID |
date | the date (anything accepted by hwrf.numerics.to_datetime) |
nocolons | if True, colons in the date are converted to underscores |
Definition at line 21 of file wrfbase.py.
Referenced by hwrf.fcsttask.WRFAnl2WRF.get_inputs().