HWRF
trunk@4391
|
Main script to for running ocean spin up: Phase1 and Phase2 (also known as Phase3 and Phase4). More...
Main script to for running ocean spin up: Phase1 and Phase2 (also known as Phase3 and Phase4).
It assumes that all parent HWRF directory tree (CSTREAM, COMIN), exists and the necessary inputs sets are available in PARMhwrf, FIXhwrf, VITDIR , GFSDIR, LCDIR directories. I assume that python based HWRF directory structure is same as in the unix/linux based one. Otherwise, it can be changed based on the python version.
Functions | |
def | run_init (STORMNAME, STORMID, STARTDATE, EXEChwrf, PARMhwrf, FIXhwrf, VITDIR, GFSDIR, LCDIR, CSTREAM, COMIN, init_method=None, logger=None, fcstlen=None, outstep=None, sync_frequently=False, kwargs) |
Run the ocean initialization. More... | |
def | main |
Main program for testing the POM initialization outside of the HWRF workflow. More... | |
Variables | |
dictionary | oinit_d |
Mapping from basin name to initialization method for that basin. More... | |
dictionary | odata_d |
Mapping from basin letter to the list of available initializations for the basin. More... | |
dictionary | domain_d |
Mapping from basin letter to long basin name. More... | |
def pom.master.main | ( | STORMNAME, | |
STORMID, | |||
STARTDATE, | |||
fcstlen = None |
|||
) |
Main program for testing the POM initialization outside of the HWRF workflow.
STORMNAME | Upper-case storm name for filenames (KATRINA) |
STORMID | Three character storm number and basin, upper-case (12L) |
STARTDATE | Simulation analysis time as a string, YYYYMMDDHH (2005082918) |
fcstlen | forecast length in hours |
def pom.master.run_init | ( | STORMNAME, | |
STORMID, | |||
STARTDATE, | |||
EXEChwrf, | |||
PARMhwrf, | |||
FIXhwrf, | |||
VITDIR, | |||
GFSDIR, | |||
LCDIR, | |||
CSTREAM, | |||
COMIN, | |||
init_method = None , |
|||
logger = None , |
|||
fcstlen = None , |
|||
outstep = None , |
|||
sync_frequently = False , |
|||
kwargs | |||
) |
Run the ocean initialization.
This is a wrapper around the pom.init module that selects the right ocean initialization for the chosen basin and delivers the output to the specified location.
STORMNAME | Upper-case storm name for filenames (KATRINA) |
STORMID | Three character storm number and basin, upper-case (12L) |
STARTDATE | Simulation analysis time as a string, YYYYMMDDHH (2005082918) |
EXEChwrf | Directory with HWRF executables. |
PARMhwrf | Directory with HWRF parameter files. |
FIXhwrf | Directory with HWRF fixed files. |
GFSDIR | Directory with input files from GFS. |
LCDIR | Directory with loop current files |
CSTREAM | Directory to place files for the POM forecast to read. |
COMIN | HWRF final output directory. |
sync_frequently | If True, "sync" is run frequently |
init_method | The string name of the initialization method to use. If this is unspecified, a suitable default is chosen. Allowed values: GDEM, NCODA. |
logger | a logging.Logger for log messages |
fcstlen | forecast length in hours |
outstep | output frequency in seconds (an integer) |
kwargs | Additional keyword arguments are passed to Oceanini subclass constructors. |
Definition at line 60 of file master.py.
Referenced by pom.master.main(), and hwrf.mpipomtc.POMInit.run_init().
pom.master.domain_d |
Mapping from basin letter to long basin name.
pom.master.odata_d |
Mapping from basin letter to the list of available initializations for the basin.