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

Create namelists, monitor wrf simulations, generate filenames. More...

Detailed Description

Create namelists, monitor wrf simulations, generate filenames.

This module contains classes that manipulate WRF namelists in complex ways, and predict the resulting output and input filenames regardless of whatever crazy timesteps are requested. This module also contains a class, ExternalWRFTask, that can monitor a running WRF simulation, providing a list of output and input files, and check whether the simulation has completed, failed or is still running.

See also
hwrf.wrfbase

Classes

class  ExternalWRFTask
 monitors a running wrf simulation More...
 
class  WRFDomain
 A domain in a WRF simulation. More...
 
class  WRFSimulation
 generate and manipulate wrf namelists, predict output filenames More...
 

Functions

def default_wrf_outname (stream)
 default wrf output filename patterns More...
 

Variables

list __all__ = ['default_wrf_outname','WRFDomain','WRFSimulation','ExternalWRFTask']
 the list of symbols output by "from hwrf.wrf import *"
 
tuple _wrf_namelist_order = partial_ordering(['time_control','fdda','domains','physics','dynamics','bdy_control','namelist_quilt','logging'],6)
 Default ordering of WRF namelist sections and namelist variables when calling WRF.namelist. More...
 
dictionary _wrf_nl_var_order
 a mapping of WRF namelist name to a mapping of known variables within that namelist. More...
 

Function Documentation

def hwrf.wrf.default_wrf_outname (   stream)

default wrf output filename patterns

Generate a reasonable default wrf outname input value for the specified stream. Presently, these match the WRF defaults. These do not have to match the WRF defaults since we always specify the outname for all streams.

Parameters
streamthe stream
Returns
the wrf output filename pattern, including <date> and <domain> if relevant

Definition at line 31 of file wrf.py.

Referenced by hwrf.wrf.WRFDomain.add_output().

Variable Documentation

hwrf.wrf._wrf_namelist_order = partial_ordering(['time_control','fdda','domains','physics','dynamics','bdy_control','namelist_quilt','logging'],6)

Default ordering of WRF namelist sections and namelist variables when calling WRF.namelist.

Note that this can be overridden if needed. The defaults are set to produce the same order as the pre-python EMC HWRF. the ordering of WRF namelists

Definition at line 66 of file wrf.py.

hwrf.wrf._wrf_nl_var_order

a mapping of WRF namelist name to a mapping of known variables within that namelist.

This ordering of namelist values is needed by programs that only know how to read a subset of the namelist, such as the coupler.

Definition at line 73 of file wrf.py.