To creating WRF namelist in the Object-Oriented manner. Need to be updated but still usefull at this moment. Testing with the Buildbot now.
The file example.py
is a very simple example for you
- What to write to activate the modulde
- How to set the physics
- Example for large ensemble simulation
import WRF_NAMELIST_CREATOR as WNC
NCC = WNC.namelist_creater("namelist.input", STR_DIR='./TEST_GROUND/')
NLC = WNC.namelist_checker()
NCC.read_user_specific(ARR_run_time_in=[0,0,0,12,0,0], ARR_start_time_in=[2015, 8, 21, 0,0,0], ARR_end_time_in=[2015, 8, 21, 12, 0, 0])
NCC.DIC_physics_common_para["mp_physics"]["VALUE"] = 6
NCC.create_a_namelist()
change the namelist's format to fit your need:
NCC.DIC_user["starting_time_step"]["VALUE"] = [24, 12, 6]
NCC.DIC_time_control_common_para["bdy_inname"]["VALUE"] = "ecmwf"
... and then your input for wrfbdy
will become: ecmwf_d<domain>
NCC.DIC_time_control_common_para["bdy_inname"]["STR_FMT"] = "\'{0:s}{1:s}_d<domain>_<date>\',"
... and then your input for wrfbdy
will include the "date"
NCC.IF_ensemble_run
to activate the ensemble simulation namelist for ESIAS-met
, which an ensemble version of WRF by Rheinisches Institut für Umweltforschung an der Universität zu Köln and IEK-8 Forschungszentrum Juelich.
This option will be only useful when using this version of WRF.
Also this is a good example to setup additional namelist for specific version fo WRF.
- Adding the support for yaml files
- unit-testing