发布时间 : 星期日 文章WRF模式上机手册更新完毕开始阅读4e5e9bc0580216fc710afddf
geog_data_path = ' /public1/WRF-DATA/geog' opt_geogrid_tbl_path = ' geogrid/' /
提示:这里可以用wps的辅助工具plotgrids程序来调整自己定义的区域参数。具体操作是:
a) 运行plotgrids.exe程序
util/plotgrids.exe b) 运行图形查看软件idt /usr/local/bin/ idt gmeta
c) 弹出窗口里,点击“”键。
3) 创建运行geogrid.exe程序的作业卡
vi geogrid.cmd
创建后的geogrid.cmd的文件内容格式如下:
#################################################### #
# run the program geogrid.exe of WPS #
#################################################### #@ job_type = parallel #@ class = normald #@ comment=WRF
#@ initialdir = /dgpfs/fs2/user/WRF/WPS #@ executable = geogrid.exe #@ input = /dev/null #@ output =geogrid.out #@ error =geogrid.err #@ node = 1
#@ tasks_per_node = 8 #@ node_usage = shared
#@ network.MPI = css0,shared,US #@ notification = never
#@ wall_clock_limit = 00:10:00 #@ queue
4) 提交作业卡geogrid.cmd
llsubmit geogrid.cmd
运行成功之后,在当前目录下会产生一个静态数据文件geo_em.d01.nc。
2. 运行ungrib.exe,解码GRIB数据 1) 获取GRIB码数据文件
用户可以从网络中获取全球模式GRIB格式的气象场资料。 在IBM机器上,可以到以下目录下进行连接:
/dgpfs/fs2/wrf_xp/grib/
5
ln –sf /dgpfs/fs2/wrf_xp/grib/ grib
2) 根据数据来源模式具体情况,选择与此模式相应的变量列表文件。这里以GFS模式的
气象要素场为例:
ln –sf ungrib/Variable_Tables/Vtable.GFS Vtable
3) 连接GRIB码数据文件成GRIB.???格式 link_grib.csh grib/gfs 4) 编辑参数列表文件namelist.wps
&share
wrf_core = 'ARW', max_dom = 1,
start_date = '2006-08-16_12:00:00', end_date = '2006-08-16_18:00:00', interval_seconds = 21600 io_form_geogrid = 2,
opt_output_from_geogrid_path = './', debug_level = 0 /
&ungrib
out_format = 'WPS' /
提示:查看GRIB码数据的头信息可以用g1print.exe命令: util/g1print.exe GRIB.AAA
5) 创建运行ungrib.exe程序的作业卡
vi ungrib.cmd
创建后的ungrib.cmd的文件内容格式如下:
#################################################### #
# run the program ungrib.exe of WPS #
#################################################### #@ job_type = serial #@ class = interactive
#@ initialdir = /dgpfs/fs2/wrftc?/denglt/WPS #@ executable = ungrib.exe #@ input = /dev/null #@ output =ungrib.out #@ error =ungrib.err #@ notification = never
#@ wall_clock_limit = 00:10:00 #@ queue
6) 提交作业卡ungrib.cmd
6
llsubmit ungrib.cmd 提示:
a) ungrib的结果文件“FILE:…”可以用WPS的工具软件rd_intermediate.exe程序进行
查看,以验证数据的正确性。查看时,只需执行rd_intermediate.exe文件,并在这个可执行文件后面加上要查看的数据文件名。例如: util/rd_intermediate.exe FILE:2005-07-30_12
b) 用WPS的工具软件plotfmt.exe可以绘制中间文件的图形。具体操作是:
? 执行plotfmt.exe程序,并带上数据文件名作为输入参数。例如: util/plotfmt.exe FILE:2005-07-30_12 ? 运行图形查看软件idt
idt gmeta
? 弹出窗口里,点击“”键。
3. 运行metgrid.exe,对解码后的数据进行水平插值 1) 编辑参数列表文件namelist.wps
&share
wrf_core = 'ARW', max_dom = 1,
start_date = '2006-08-16_12:00:00', end_date = '2006-08-16_18:00:00', interval_seconds = 21600 io_form_geogrid = 2,
opt_output_from_geogrid_path = './', debug_level = 0 /
&metgrid
fg_name = './FILE' io_form_metgrid = 2,
opt_output_from_metgrid_path = './', opt_metgrid_ tbl_path = 'metgrid/', /
2) 创建运行metgrid.exe程序的作业卡 vi metgrid.cmd
创建后,metgrid.cmd文件的内容格式为:
#################################################### #
# run the program metgrid.exe of WPS #
#################################################### #@ job_type = parallel #@ class = normald
#@ initialdir = /dgpfs/fs2/wrftc?/denglt/WPS
7
#@ executable = metgrid.exe #@ input = /dev/null #@ output =metgrid.out #@ error =metgrid.err #@ node = 1
#@ tasks_per_node = 8 #@ node_usage = shared
#@ network.MPI = css0,shared,US #@ notification = never
#@ wall_clock_limit = 00:10:00 #@ queue
3) 提交作业卡metgrid.cmd llsubmit metgrid.cmd
运行成功后,在opt_output_from_metgrid_path设置的路径下会产生
met_em.d01.yyyy-mm-dd_hh:00:00.nc格式的文件。
三. 运行WRF 模式主体 1. 运行初始化程序real
1) 编辑参数列表文件namelist.input
WRF模式有专门运行real.exe和wrf.exe程序的路径(WRFV3/run或者WRFV3/test/em_real)。我们转到运行路径下
cd WRFV3/test/em_real/
然后就可以编辑参数列表文件
vi namelist.input
2) 连接real.exe的输入场数据
real.exe的输入场数据文件就是metgrid的输出文件,文件名格式为“met_em.d01.*”。在运行real.exe前,必须将这些文件拷贝或者连接到real.exe的运行路径 (test/em_real) 下面。
ln -sf ../../WPS/met_em.d01.* . vi real.exe
3) 创建运行real.exe程序的作业卡
提示:根据编译WRF模式时的选项情况,我们可知real.exe编译后是串行还是并行程序。根据real.exe的编译情况,写出相应的串行或者并行作业卡。 4) 提交作业
./real.exe
2. 运行WRF模式
1) 编辑参数列表文件namelist.input
进入到WRF的运行路径(WRFV2/run或者test/em_real)
cd WRFV3/run
8