wrf运行--(精简版).ppt
20页WRF模式的安装与运行(精简版),宋耀明 大气科学学院,(一)安装WPS,工作流程,geogrid:处理地形资料和网格数据 ungrib:解码GRIB资料,得到气象要素场 metgrid:将气象要素场水平插值到地形资料上 namelist.wps,,将geog_minimum.tar.bz2,orogwd_10m.tar.bz2,varsso.tar.bz2复制到 /opt/GEOG/中(先创建文件夹GEOG)(该路径为地形数据文件路径,需要在namelist.wps中设置),然后采用下述命令解压: tar.gz 格式解压: tar -zxvf xx.tar.gz tar.bz2 格式解压: tar -jxvf xx.tar.bz2,安装WPS,1. ./configure 生成configure.wps,2. ./compile & compile.log 3. 编译成功: WPS目录下生成: geogrid.exe, ungrib.exe, metgrid.exe 若编译未成功: ./clean -a 卸载后从step3开始4. 修改namelist.WPS(见非精简版) 5. 处理地形资料和网格数据 ./geogrid.exe & geogrid.log 生成geo_em.d01(d02, d03,,,).nc,,3. ungrib:解码GRIB资料,得到气象要素场 (1)链接正确的Vtable WPS/ungrib/Variable_Tables/ ln –sf ungrib/Variable_Tables/Vtable.GFS Vtable 检查是否有正确链接生成,(2) 链接外部数据fnl ./link_grib.csh /路径/fnl_* (3) ./ungrib.exe & ungir.log 生成FILE:为前缀的中间文件,4. metgrid:将气象要素场水平插值到地形资料上 ./metgrid.exe & metgrid.log 生成类似met_em.d01.*文件。
二)安装WRFV3,WRFV 功能,REAL真实个例 为real-data 个例创建初始条件和边界条件 控制动力平衡 选择不同的物理过程 移动网格,双向嵌套网格,单项嵌套网格 断点启动restart 输出数据wrfout,,real case的模拟,运行目录:WRFV3/test/em_real 2个步骤:1)./real.exe 2) ./wrf.exe,1. ./configure 配置文件 2. ./compile em_real 编译信息在屏幕上直接显示 ./compilie em_real & compile.log 编译信息写到compile.log文件中,3. 编译成功: WRFV3/test/em_real目录下生成: real.exe, wrf.exe, tc.exe, ndown.exe, nup.exe 若编译未成功: ./clean -a 卸载后从step3开始4. 运行 cd test/em_real ln –sf //WPS/met_em* . 修改namelist.input(见非精简版) ./real.exe 若生成rfbdy_d01*,wrfinput_d01*表示运行成功 ./wrf.exe 若生成wrfout***文件,说明运行成功,(三)NCL绘图,1.进入cygwin\usr\local文件夹,创建文件ncl 2. 将local文件夹下的lib,inlcude,bin文件夹复制到ncl文件夹 3. 在命令行中,输入:vi ~/.bash_profile 在最后添加: export NCARG_ROOT=/usr/local/ncl export PATH=$NCARG_ROOT/bin:$PATH 然后在命令行输入exit退出cygwin,重新进入,可供绘图的文件包括: 1.模式地形数据,如: geo_em.d01.nc geo_em.d02.nc (其中的变量参考文件geo_em.cdl) 参考程序:geo_em.ncl (图像效果:plt_geo_1.pdf) 2.模式模拟范围:(通过namelist.wps绘图) 参考程序:wps_domain.ncl (图像效果: wps_show_dom.pdf ) 3.模式输出,如: wrfout_d01_2010-10-22_18:00:00(变量参考wrfout.cdl) 参考程序:plt_metgrid_2.ncl (图像效果: plt_metgrid_2.pdf ),。





