Modify model domain
Modify model domainModifying the WRF model domain
This example demonstrates how to modify the domain for the Sandy case, but these procedures can be used as guidance for any other case as well.
Changing the model domain requires modifying the WRF namelist.wps and namelist.input. For this example, let's say you want to make the original Sandy domain larger and shift it westward to include more land.
First, make sure you have created a new case directory so nothing is overwritten from the original run, and that your $CASE_DIR is properly set. See Setting Up a New Experiment
Next, modify the &geogrid section of the namelist.wps:
vi namelist.wps
Edits to &geogrid section of namelist.wps:
e_we: 50 --> 75 (line 15)
e_sn: 50 --> 75 (line 16)
ref_lon: -73. --> -76. (line 22)
stand_lon: -73.0 --> -76.0 (line 25)
The updated &geogrid section of the namelist.wps should look like this (with changes in bold):
parent_id = 1, 1,
parent_grid_ratio = 1, 3,
i_parent_start = 1, 31,
j_parent_start = 1, 17,
e_we = 75, 112,
e_sn = 75, 97,
geog_data_res = 'lowres', 'lowres',
dx = 40000,
dy = 40000,
map_proj = 'lambert',
ref_lat = 35.
ref_lon = -76.
truelat1 = 30.0,
truelat2 = 60.0,
stand_lon = -76.0,
geog_data_path = '/data/WPS_GEOG/',
opt_geogrid_tbl_path = '/comsoftware/wrf/WPS-4.1/geogrid',
/
The &domains section of the namelist.input file must also be updated to reflect these new domain parameters:
vi namelist.input
Edits to the &domains section of the namelist.input:
e_we: 50 --> 75 (line 38)
e_sn: 50 --> 75 (line 39)
time_step = 180,
time_step_fract_num = 0,
ime_step_fract_den = 1,
max_dom = 1,
e_we = 75, 112, 94,
e_sn = 75, 97, 91,
Now run the NWP components for your new case with the new domain.
SELECT THE APPROPRIATE CONTAINER INSTRUCTIONS FOR YOUR SYSTEM BELOW:
First run WPS:
Then run REAL:
Then run WRF:
-v ${PROJ_DIR}/container-dtc-nwp/components/scripts/common:/home/scripts/common \
-v ${PROJ_DIR}/container-dtc-nwp/components/scripts/sandy_20121027:/home/scripts/case \
-v ${CASE_DIR}/wpsprd:/home/wpsprd -v ${CASE_DIR}/gsiprd:/home/gsiprd -v ${CASE_DIR}/wrfprd:/home/wrfprd \
--name run-sandy-wrf dtcenter/wps_wrf:${PROJ_VERSION} /home/scripts/common/run_wrf.ksh
And continue running the remaining NWP components (i.e. UPP, MET, etc.)
First run WPS:
Then run REAL:
Then run WRF:
And continue running the remaining NWP components (i.e. UPP, MET, etc.)