WEM.lazyWRF.lazyWRF package¶
Submodules¶
WEM.lazyWRF.lazyWRF.create_sounding module¶
-
class
WEM.lazyWRF.lazyWRF.create_sounding.
Profile
(method='MW01')¶ Bases:
object
-
buoyancy
(E, m, z, H=14500)¶ Parcel buoyancy profile, or Eq. (A1) in MW01.
Parameters: - E (int, float) – Specified CAPE
- m (int, float) – Profile compression parameter
- z (int, float) – Altitude above ground level (metres)
- H (int, float, optional) – Vertical scale
Returns: profile – Atmospheric profile.
Return type: array_like
-
calc_RH
(z, ztr=12000.0)¶
-
calc_U
(z, us, zs=3000)¶
-
calc_theta
(z, ztr=12000.0, theta0=300.0, thetatr=343, Ttr=213)¶
-
WEM.lazyWRF.lazyWRF.main module¶
-
class
WEM.lazyWRF.lazyWRF.main.
Lazy
(config)¶ Bases:
object
-
copy_files
(tofolder)¶ Move wrfout files to folder. Create folder if it doesn’t exist
Move .TS files if they exist Copy namelist.input to that folder. Copy rsl.error.0000 to the folder.
Input(s): args = names of folder tree, in order of depth.
-
copy_namelist
(suffix)¶ Appends current time to namelist to create backup.
-
edit_namelist
(suffix, sett, newval, maxdom=1)¶ Method edits namelist.wps or namelist.input.
Parameters: - suffix – which namelist needs changing
- sett – setting that needs changing
- newval – its new value -> currently replaces whole line
- maxdom – number of domains to edit (this is relevant for multiple columns?)
Returns: None.
-
generate_date
(date, outstyle='wps')¶ Creates date string for namelist files.
Input:
-
go
(casestr, IC, experiment, ensnames, **kwargs)¶ Inputs: (all folder names) casestr : string of case study initialisation date/time IC : initial condition model experiment : dictionary. Key: ensemble type (ICBC,STCH,MXMP)
-initial condition/boundary condition -stochastic kinetic energy backscatter -mixed model parameterisations- Value...
- -model configuration (CTRL) for ICBC -initial condition model/ens member for others
- ensnames : list of ensemble member names
- e.g. c00,p01,p02
**kwargs include: WPS_only : stop after linking met_em files to WRF folder
-
go_GEFSR2
(ensns, **kwargs)¶ Runs WPS, WRF for one set of initial conditions and settings based on the GEFSR2 model.
Inputs: ensns : names of ensemble member
-
link_to_IC_Vtable
(IC)¶
-
link_to_met_em
()¶
-
link_to_soil_Vtable
()¶
-
link_to_soil_data
()¶
-
run_exe
(exe)¶ Run WPS executables, then check to see if it failed. If not, return True to proceed.
Input: exe : .exe file name.
-
submit_job
()¶
-