最新WRF模式运行手册.doc
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_05.gif)
《最新WRF模式运行手册.doc》由会员分享,可在线阅读,更多相关《最新WRF模式运行手册.doc(183页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、Four short words sum up what has lifted most successful individuals above the crowd: a little bit more.-author-dateWRF模式运行手册WRF模式运行手册WRF 模式运行手册二一年八月二十四日 目 录第一部分 WRF模式介绍3第二部分 模式运行环境搭建31、所需的各种组件32、Linux操作系统(略)43、安装PGI44、安装netcdf55、安装ncl6第三部分 模式的编译安装71、编译安装WRF模式主体72、编译WPS83、安装WRFDA94、安装RIP410第四部分 模式的运行
2、11一、运行WPS,进行数据前处理11二、运行WRF 模式主体13附录1 WRF模式参数配置说明15附录2 Linux/UNIX常用命令速查手册31附录3 网络资源40第一部分 WRF模式介绍WRF(Weather Research Forecast)模式系统是由许多美国研究部门及大学的科学家共同参与进行开发研究的新一代中尺度预报模式和同化系统。WRF模式系统的开发计划是在1997年由NCAR中小尺度气象处、NCEP的环境模拟中心、FSL的预报研究处和奥克拉荷马大学的风暴分析预报中心四部门联合发起建立的,并由国家自然科学基金和NOAA共同支持。现在,这项计划,得到了许多其他研究部门及大学的科学
3、家共同参与进行开发研究。WRF模式系统具有可移植、易维护、可扩充、高效率、方便的等诸多特性,将为新的科研成果运用于业务预报模式更为便捷,并使得科技人员在大学、科研单位及业务部门之间的交流变得更加容易。 WRF模式系统将成为改进从云尺度到天气尺度等不同尺度重要天气特征预报精度的工具。重点考虑110公里的水平网格。模式将结合先进的数值方法和资料同化技术,采用经过改进的物理过程方案,同时具有多重嵌套及易于定位于不同地理位置的能力。它将很好的适应从理想化的研究到业务预报等应用的需要,并具有便于进一步加强完善的灵活性。第二部分 模式运行环境搭建1、所需的各种组件:(1)一般的32位或64位PC均可,当然
4、也可以是集群或高性能计算机(2)一般的Linux操作系统或类Unix操作系统(3)基本的编译环境,例如gcc 、perl、 BourneShell、 CShell、make、m4、sed、awk等等以及相应的库(4)Fortran编译器,一般用PGI或Intel的(5) NetCDF (Because most of the WRF post-processing packages assume that the data from the WRF model, the WPS package, or the WRF-Var program is using the netCDF librar
5、ies)(6) 如果是要跑并行的,一般就可以装mpich或openmpi(7)后处理一般可以使用GrADS 、NCL 、RIP4、Vis5D(8) 一般安装完上述软件后都要把相对的可执行程序的路径设到环境变量中。2、 Linux操作系统安装(略)3、 安装PGI(1)解压缩PGI压缩包 $cd /home/name/Model, $mkdir PGI $tar -xvf pgilinux-715.tar.gz -C PGI $cd PGI $./install 出现提示信息 Do you accept these terms?accept,decline accept 1,single sys
6、tem install 2,Network install 1 Install the ACML?y/n n Installation directory?/opt/pgi /usr/local/pgi Do you wish to install MPICH1?y/n q Do you want the files in the install directory to be read-only?y/n n install complete 把与安装版本相适应的license.dat拷贝到你安装的目录下(2) 配置.bashrc里的环境变量export PGI=/usr/local/pgi/
7、linux86/7.1-4/export MANPATH=$MANPATH: $PGI/manexport LM_LICENSE_FILE=/usr/local/pgi /license.datexport PATH=$PATH: $PGI/bin$source .bashrc为了试验pgi是否安装成功,可以打如下命令 $pgf90如果有如下提示信息,说明已安装成功 $pgf90-Warning-No files to process 如果大家是在更高版本的fedora下装pgi,估计pgi的版本也会相应的升高,(3) 编译命令编译FORTRAN程序:pgf90 byteswapio file
8、name.for o filename.exe编译C程序:pgcc byteswapio filename.c o filename.exe4、安装netcdf(1)解压netcdf-4.0压缩包$mkdir /home/name/Program/netcdf$cd /home/name/Model$tar -xvf netcdf-4.0$cd netcdf-4.09 $./configure -prefix=/usr/local/netcdf FC=pgf90$make$make install(2)配置.bashrc里的环境变量export NETCDF=/usr/local/netcdf
9、export NETCDF_LIB=$NETCDF/libexport NETCDF_INC=$NETCDF/includeexport PATH=$PATH: $NETCDF/bin试验netcdf安装是否成功. $which ncdump$ncdump如果出现使用说明则说明安装成功5、安装ncl(1)下载编译好的程序uname agcc version根据这两个命令的输出来选择下载的ncl版本:NCL 5.1.1 32-bit binary for i686 chips for LINUX (compiled with gcc 4.1.2)(2)解压程序包gunzip ncl_ncarg-
10、5.1.1.i686_5.10.tar.gz(3)将解压后的程序包拷贝的你需要安装的目录(以/usr/local目录为例),并将包解开$ mkdir /usr/local$ cd /usr/local$ cp ncl_ncarg-5.1.0.i686_5.10.tar .$ tar -xvf ncl_ncarg-5.1.1.i686_5.10.tar(4)设置NCARG_ROOT环境变量export NCARG_ROOT=/usl/local/ncargexport NCARG_LIB=$ NCARG_ROOT /libexport NCARG_INC=$ NCARG_ROOT /includ
11、eexport PATH=$PATH: $ NCARG_ROOT /bin $source .bashrc (5)设置DISPLAY 变量export DISPLAY=:0.0export DISPLAY=IP:0export DISPLAY=localhost:13.0如想试验安装是否成功$which idt$idt 如进入程序就说明已经成功第三部分 模式的编译安装1、编译安装WRF模式主体1) 获取源程序包 (获取源程序代码可从WRF的官方网站下载)cp /win/soft/WRFV3.2.TAR.gz . 2) 解压释放源程序包tar xvfz WRFV3.2.TAR.gz3) 进入释放
12、后的源程序目录cd WRFV34) 配置编译环境configure 出现如下的选择列表:Please select from among the following supported platforms. 1. Linux i486 i586 i686, gfortran compiler with gcc (serial) 2. Linux i486 i586 i686, gfortran compiler with gcc (smpar) 3. Linux i486 i586 i686, gfortran compiler with gcc (dmpar) 4. Linux i486 i
13、586 i686, gfortran compiler with gcc (dm+sm) 5. Linux i486 i586 i686, g95 compiler with gcc (serial) 6. Linux i486 i586 i686, g95 compiler with gcc (dmpar) 7. Linux i486 i586 i686, PGI compiler with gcc (serial) 8. Linux i486 i586 i686, PGI compiler with gcc (smpar) 9. Linux i486 i586 i686, PGI comp
14、iler with gcc (dmpar) 10. Linux i486 i586 i686, PGI compiler with gcc (dm+sm) 11. Linux x86_64 i486 i586 i686, ifort compiler with icc (serial) 12. Linux x86_64 i486 i586 i686, ifort compiler with icc (smpar) 13. Linux x86_64 i486 i586 i686, ifort compiler with icc (dmpar) 14. Linux x86_64 i486 i586
15、 i686, ifort compiler with icc (dm+sm) 15. Linux i486 i586 i686 x86_64, PathScale compiler with pathcc (serial) 16. Linux i486 i586 i686 x86_64, PathScale compiler with pathcc (dmpar)Enter selection 1-16 : (建议选择3)-Compile for nesting? (0=no nesting, 1=basic, 2=preset moves, 3=vortex following) defau
16、lt 0: (建议选择1)5) 编译模式主体compile em_real 编译成功后,在main目录下有real.exe和wrf.exe。如果没有,则说明编译失败。2、编译WPS1) 获取源程序包 (获取源程序代码可从WRF的官方网站下载)cp WPSV3.2.TAR.gz ./ 2) 解压释放源程序包tar xvfz WPSV3.2.TAR 3) 进入释放后的源程序目录cd WPS4) 配置编译环境configure 出现如下的选择列表:-Please select from among the following supported platforms. 1. PC Linux i486
17、 i586 i686, PGI compiler serial, NO GRIB2 2. PC Linux i486 i586 i686, PGI compiler serial 3. PC Linux i486 i586 i686, PGI compiler DM parallel, NO GRIB2 4. PC Linux i486 i586 i686, PGI compiler DM parallel 5. PC Linux i486 i586 i686, Intel compiler serial, NO GRIB2 6. PC Linux i486 i586 i686, Intel
18、compiler serial 7. PC Linux i486 i586 i686, Intel compiler DM parallel, NO GRIB2 8. PC Linux i486 i586 i686, Intel compiler DM parallel 9. PC Linux i486 i586 i686, g95 compiler, serial, NO GRIB2 10. PC Linux i486 i586 i686, g95 compiler, serial 11. PC Linux i486 i586 i686, g95 compiler, DM PARALLEL,
19、 NO GRIB2 12. PC Linux i486 i586 i686, g95 compiler, DM PARALLEL 13. PC Linux i486 i586 i686, gfortran compiler, serial, NO GRIB2 14. PC Linux i486 i586 i686, gfortran compiler, serial 15. PC Linux i486 i586 i686, gfortran compiler, DM PARALLEL, NO GRIB2 16. PC Linux i486 i586 i686, gfortran compile
20、r, DM PARALLELEnter selection 1-16 : (建议选择2)5) 编译WPScompile wps 编译成功后,在WPS的主目录下有geogrid.exe、ungrib.exe和metgrid.exe。如果没有,则说明编译失败。6) 编译WPS的辅助工具compile util编译成功后,在util目录下有 g1print.exe、mod_levs.exe、plotgrids.exe、avg_tsfc.exe、g2print.exe、plotfmt.exe和rd_intermediate.exe。如果没有,则说明编译失败。配置编译环境是选择了不支持GRIB2的选项,
21、所以g2print.exe是没有产生。3、安装WRFDA安装WRFDAV3前要先装三个外部库bufr(如不用bufr格式的数据,可以不用装,这是3.1版本之前的WRFDA所不允许的),lapack,和blas$cd /home/name/Model$tar -xvf WRFDAV3.TAR.gz -C /home/name/Program$cd /home/name/Program $mkdir $tar -xvf /home/name/Model/bufrlib.tar $cd BUFR$cpp -traditional -I. -C -DRECL1 wrdlen.Fwrdlen.f/ x6
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 最新 WRF 模式 运行 手册
![提示](https://www.taowenge.com/images/bang_tan.gif)
限制150内