WRF模式和WRFDA模式安装
- 格式:pdf
- 大小:32.15 KB
- 文档页数:2
WRF安装手册--给所有挣扎在安装WRF泥淖中的朋友们作者:SJ modified by Jiangzq网上有很多指导安装WRF及其组件的文章,也有很多帮助解决安装过程中各种困难的帖子,但大多分散且不系统,下面我就以过来人的身份把我在PC上安装WRF的步骤及遇到的各种问题和答案放在模式联盟论坛上,希望能帮助那些正在挣扎于安装WRF泥淖中的各位,同时也纪念下我之前所经历的这种痛苦。
1、安装平台fedora82、所需的各种组件:1)PGI 7.15 + netcdf4.0 +NCL(==ncarg) !其实ifort的性能比PGI更好,但是其他的都过了,只在安装WRFDA的过程中一直编译不过去,因此暂不介绍ifort编译WRF的过程。
2)WRFV3.1 + WPSV3.0.1 + WRFDA V3.0.1(if needed)3)RIP43、安装PGI1)解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]accept1,Sinle system install2,Network install1Install the ACML? [y/n]nInstallation directory?[/opt/pgi]/home/name/Program/pgiDo you wish to install MPICH1? [y/n]nDo you want the files in the install directory to be read-only?[y/n]ninstall complete$cp license.dat /home/name/Program/PGI !把与安装版本相适应的license.dat拷贝到你安装的目录下配置.bashrc里的环境变量export PGI=/home/name/program/pgi/linux86/7.1-5/export MANPATH=$MANPATH:$PGI/manexport LM_LICENSE_FIEL=/home/name/program/pgi/license.datexport PATH=$PATH:$PGI/bin$source .bashrc为了试验pgi是否安装成功,可以打如下命令$pgf90如果有如下提示信息,说明已安装成功$pgf90 –warning-No files to process***************************************************************************在Fedora11下安装pgi_9.0-1高版本的fedora下同样需要安装高版本的pgi,但其安装步骤基本一样,只是它里面有一个patcher需要安装罢了。
自己的WRF安装总结3、3安装记录、pdf WRF-WPS-WRFDA安装、pdf wrf模式学习_从linux安装开始、pdf WRF安装手册--给所有挣扎在安装WRF 泥淖中的朋友们、doc一、CentOS5 Linux 安装图解即设置安装图解参考 wrf模式学习_从linux安装开始、pdf二、相关软件安装1、准备工作1)通过rpmqa |grep samba有以下显示:samba-common-3、0、33-3、14、el5samba-client-3、0、33-3、14、el5若缺文件,则从安装光盘中安装。
如下[root@numerca ~]# cd /media/CentOS_5、4_Final/CentOS/[root@numerca CentOS]# ls * |grep sambasamba-3、0、33-3、14、el5、i386、rpmsystem-config-samba-1、2、41-5、el5、noarch、rpm[root@numerca CentOS]# rpm3、0、33-3、14、el5、i386、rpm warning: samba-3、0、33-3、14、el5、i386、rpm: Header V3 DSA signature: NOKEY, key ID eerror: Failed dependencies:perl(Convert::ASN1) is needed by samba-3、0、33-3、14、el5、i386[root@numerca CentOS]# ls * |grep perlperl-Convert-ASN1-0、20-1、1、noarch、rpm[root@numerca CentOS]# rpmConvert-ASN1-0、20-1、1、noarch、rpm[root@numerca CentOS]# rpm3、0、33-3、14、el5、i386、rpm[root@numerca CentOS]# rpmconfig-samba-1、2、41-5、el5、noarch、rpm[root@numerca CentOS]# cd[root@numerca ~]# ntsysv选中smb[root@numerca ~]# cd /media/CentOS_5、4_Final/CentOS/然后,查看gcc 是否安装:[root@numerca CentOS]# rpm4、1、2-46、el5gcc-c++-4、1、2-46、el5gcc-4、1、2-46、el5compat-gcc-34-g77-3、4、6-4gcc-gfortran-4、1、2-46、el5compat-libgcc-296-2、96-138compat-gcc-34-c++-3、4、6-4compat-gcc-34-3、4、6-4gcc-java-4、1、2-46、el5最后,查看Xlib、h,Intrinsic、h 是否安装[root@numerca CentOS]# cd /usr/include/X11[root@numerca X11]# lsXlib、h,Intrinsic、h 存在则不需安装2)设置共享用户public (方便window 和linux 系统间复制文件,也可装个Ext2Fsd- 0、51、zip软件,详细见硬盘安装CentOS6、0)[root@numerca ~]# useradd public[root@numerca ~]# chmod777 /home/public[root@numerca ~]# smbpasswd2、0、a8-bin-i686-pc-linux-gnu、tar、gz、lib、tar、data、tar、Z 三个文件[root@numerca X11]# cd/home/public[root@numerca public]# tar2、0、a8-bin-i686-pc-linux-gnu、tar、gz[root@numerca public]# mv grads-2、0、a8 /usr/local/[root@numerca public]# mv lib、tar data、tar、Z /usr/local/grads-2、0、a8[root@numerca public]# mv /usr/local/grads-2、0、a8 /usr/local/grads(更名)[root@numerca public]# cd /usr/local/grads[root@numerca grads]# mkdir dat[root@numerca grads]# gunzip data、tar、Z[root@numerca grads]# tarC 、/dat[root@numerca grads]# tar901[1]、tar、gz、pgi_9、0-1_linux32、tar、bz2 以及license、dat[root@numerca ~]# cd/home/public[root@numerca public]# tar901[1]、tar、gz[root@numerca public]# tar1_linux32、tar、bz2[root@numerca public]# 、/installDo you accept these terms?[accept,decline]accept1、Single system install2、 Network installPlease choose install option(1-2):1sea121 整理于xx 年4 月,如有疑问,请发E-mail 至sea121@126ZZZ。
WRF 模式运⾏行⼿手册⼆二○⼀一○年⼋八⽉月⼆二⼗十四⽇日⽬目 录第⼀一部分 WRF模式介绍3第⼆二部分模式运⾏行环境搭建31、所需的各种组件32、Linux操作系统(略)43、安装PGI44、安装netcdf55、安装ncl6第三部分模式的编译安装71、编译安装WRF模式主体72、编译WPS83、安装WRFDA94、安装RIP410第四部分模式的运⾏行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共同⽀支持。
现在,这项计划,得到了许多其他研究部门及⼤大学的科学家共同参与进⾏行开发研究。
WRF模式系统具有可移植、易维护、可扩充、⾼高效率、⽅方便的等诸多特性,将为新的科研成果运⽤用于业务预报模式更为便捷,并使得科技⼈人员在⼤大学、科研单位及业务部门之间的交流变得更加容易。
交流变得更加容易。
WRF模式系统将成为改进从云尺度到天⽓气尺度等不同尺度重要天⽓气特征预报精度的⼯工具。
重点考虑1-10公⾥里的⽔水平⽹网格。
模式将结合先进的数值⽅方法和资料同化技术,采⽤用经过改进的物理过程⽅方案,同时具有多重嵌套及易于定位于不同地理位置的能⼒力。
它将很好的适应从理想化的研究到业务预报等应⽤用的需要,并具有便于进⼀一步加强完善的灵活性。
第⼆二部分模式运⾏行环境搭建1、所需的各种组件:(1)⼀一般的32位或64位PC均可,当然也可以是集群或⾼高性能计算机(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 libraries)(6) 如果是要跑并⾏行的,⼀一般就可以装mpich或openmpi(7)后处理⼀一般可以使⽤用GrADS 、NCL 、RIP4、Vis5D(8) ⼀一般安装完上述软件后都要把相对的可执⾏行程序的路径设到环境变量中。
WRF安装1、WRF(主)模块编译安装首先在/home/user/cuit下解压WRFV2.2.1.tar.gz文件:#tar zxvf WRFV2.2.1.tar.gz#ls#mv WRFV2.2.1 WRFV2#cd WRFV2下一步就要开始连接然后编译WRF主模块:#./configure(or:configure有的shell命令如此)然后出现如下内容:checking for perl5... nochecking for perl... found /usr/bin/perl (perl)Will use NETCDF in dir: /usr/local/netcdf-pgiPHDF5 not set in environment. Will configure WRF for use without.------------------------------------------------------------------------Please select from among the following supported platforms.1. PC Linux i486 i586 i686,PGI compiler (Single-threaded, no nesting)2. PC Linux i486 i586 i686, PGI compiler (single threaded, allows nesting usingRSL without MPI)3. PC Linux i486 i586 i686, PGI compiler SM-Parallel (OpenMP, no nesting)4. PC Linux i486 i586 i686, PGI compiler SM-Parallel (OpenMP, allows nestingusing RSL without MPI)5. PC Linux i486 i586 i686, PGI compiler DM-Parallel (RSL,MPICH, Allowsnesting)6. PC Linux i486 i586 i686, PGI compiler DM-Parallel (RSL_LITE, MPICH, Allowsnesting)7. Intel xeon i686 ia32 Xeon Linux, ifort compiler (single-threaded, nonesting)8. Intel xeon i686 ia32 Xeon Linux, ifort compiler (single threaded, allowsnesting using RSL without MPI)9. Intel xeon i686 ia32 Xeon Linux, ifort compiler (OpenMP)10. Intel xeon i686 ia32 Xeon Linux, ifort compiler SM-Parallel (OpenMP, allowsnesting using RSL without MPI)11. Intel xeon i686 ia32 Xeon Linux, ifort+icc compiler DM-Parallel (RSL,MPICH,allows nesting)12. Intel xeon i686 ia32 Xeon Linux, ifort+gcc compiler DM-Parallel (RSL,MPICH,allows nesting)13. PC Linux i486 i586 i686, PGI compiler, ESMF (Single-threaded, ESMFcoupling, no nesting)Enter selection[1-13]我们选择2,使用单机,允许嵌套,但不并行运算:Enter selection [1-13] : 2----------------------------------------------------------Configuration successful. To build the WRF, type: compile----------------------------------------------------------#./compile 编译安装开始Usage:compile wrf compile wrf in run dir (Note, noreal.exe, ndown.exe or ideal.exe generated)test cases (see README_test_cases for details):compile em_b_wavecompile em_grav2d_xcompile em_hill2d_xcompile em_quarter_sscompile em_realcompile em_squall2d_xcompile em_squall2d_ycompile –h help message我们选择real模拟,则输入#./compile em_real >& compile.log接下来就等待主模块的编译安装如果编译安装成功,在/home/user/WRFV2/run路径下生成real.exe和wrf.exe可执行文件,在终端上显示为蓝色的即可(红色表示没有安装成功,需重新编译)。
摘要:本文档简要介绍在曙光HPC集群上部署WRF/ARPS气象模式时软件环境的准备及模式安装的方法步骤。
1 曙光集群基础软件环境1.1 操作系统所有节点统一安装Red Hat Enterprise Linux Server release 6.2 64位操作系统1.2 编译器要求安装GNU、Intel、PGI三套编译器。
默认情况下,推荐使用Intel编译器,运行效率较高。
1.2.1 GNU编译器备注:GNU编译器为Red Hat Linux系统自带。
1.2.2 Intel编译器Intel编译器环境变量脚本:/public/software/profile.d/intel-env.sh1.2.3 PGI编译器PGI编译器环境变量脚本:/public/software/profile.d/pgi-env.sh1.3 MPI并行环境1.3.1 mvapich2MVAPICH2是基于MPICH2的一个MPI拓展实现,提供了对IB,iWARP,RcCE,PSM,uDAPL等新型高性能通信设备和协议的支持,同时也支持TCP/IP协议和共享内存,还支持Nvidia GPU并行任务。
MVAPICH2支持的通信接口(10种)如下图所示:MVAPICH2由美国俄亥俄大学开发,最新版本已到MVAPICH2 1.9+,基于MPICH2-1.5+开发,支持MPI-1和MPI2.2标准,并已初步支持MPI-3标准。
官方网站为:/overview/mvapich2/。
1.3.1.1 Intel编译器版本(默认MPI)版本:mvapich2-1.8安装路径:/public/software/mpi/mvapich2-18-intel环境变量脚本:/public/software/profile.d/mvapich2-intel-env.shMPI编译器:MPI运行方式:#mpirun –f hostfile –n 32 ./mpi_exec其中hostfile格式如下:node1:16node2:16从源码安装mvapich2方法:#tar zxvf mvapich2-1.8.tar.gz#cd mvapich2-1.8#./configure --prefix=/public/software/mpi/mvapich2-18-intel --with-device=ch3:nemesis:ib,tcp CC=icc CXX=icpc FC=ifort F77=ifort #make#make install1.3.1.2 GNU编译器版本版本:mvapich2-1.8安装路径:/public/software/mpi/mvapich2-18-gnu环境变量脚本:/public/software/profile.d/mvapich2-gnu-env.shMPI编译器:MPI运行方式:#mpirun –f hostfile –n 32 ./mpi_exec其中hostfile格式如下:node1:16node2:16从源码安装mvapich2方法:#tar zxvf mvapich2-1.8.tar.gz#cd mvapich2-1.8#./configure --prefix=/public/software/mpi/mvapich2-18-gnu --with-device=ch3:nemesis:ib,tcp CC=gcc CXX=g++ FC=gfortranF77=gfortran#make#make install1.3.2 OpenMPIOpenMPI是一个免费的、开源的MPI实现,兼容MPI-1和MPI-2标准。
WRF和WRFDA安装过程
一、WRF安装
设置环境变量
export FC=ifort
export SFC=ifort
export CC=icc
export SCC=icc
export CXX=icpc
export CPP='icc -E'
export CXXCPP='icpc -E'
注:需要安装netcdf,对于4.0以上版本,需要先安装hdf5
1.安装HDF库
configure --prefix=/path/to/hdf CC=icc FC=ifort --enable-fortran --enable-cxx
2.安装netcdf
首先安装netcdf 的C库
(./configure --prefix=/SWFIS/zhangxz/netcdf CC=icc FC=ifort CPPFLAGS=-I/SWFIS/zhangxz/hdf/include LDFLAGS=-L/SWFIS/zhangxz/hdf/lib --enable-hdf4 LIBS=-L/SWFIS/zhangxz/hdf)为了安装支持hdf4
./configure --prefix=/SWFIS/zhangxz/netcdf CC=icc FC=ifort CPPFLAGS=-I/SWFIS/zhangxz/hdf/include LDFLAGS=-L/SWFIS/zhangxz/hdf/lib 正常安装方法
如果编译出现错误,make clean也是解决方法之一
安装netcdf_fortran
安装本fortran时,一定要,先设置环境变量
###############NETCDF############
export NETCDF=/SWFIS/HOME/tswfis/wrflib/netcdf
export NETCDF_LIB=$NETCDF/lib
export NETCDF_INC=$NETCDF/include
export LD_LIBRARY_PATH=${NETCDF_LIB}:${LD_LIBRARY_PATH}
configure --prefix=/SWFIS/zhangxz/netcdf CPPFLAGS=-I/pathtonetcdf/include LDFLAGS=-L/pathtonetcdf/lib
二、WPS安装
注意:geog文件
需要zlib,jasper,png如果需要处理grib2数据
1.安装zlib
安装libpng前一定要先安装zlib
zlib安装中可能会遇到无法复制到include中
因此编译完成后需要手动安装libz.a和.h
2.安装jasper
configure --prefix
make && make install
##########################WRF JASPER########################
export JASPER=/SWFIS/WRF_AUX/jasper
export JASPERLIB=/SWFIS/WRF_AUX/jasper/lib
export JASPERINC=/SWFIS/WRF_AUX/jasper/include
export LD_LIBRARY_PATH="${JASPERLIB}:${LD_LIBRARY_PATH}"
3.安装png
下载了高版本的1.6.21
configure --prefix
make && make install
三、WRFDA安装
export BUFR=1
export WRF_DA_CORE=1
./configure wrfda
选择dmpar
./compile all_wrfvar。