爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 9121|回复: 8

如何安装WRFV3.0

[复制链接]
发表于 2012-4-2 12:54:42 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
如何安装WRFV3.0
转自:WRF安装
首先本人安装的软件和系统环境:
操作系统:CentOS 5.2 (redhat 公司的社区服务器版)32位系统性
Fortran编译器:PGI 7.02版本 32位 ; NETCDF 3.6.2版本  ; NCAR GRAPHIC 4.0
•首先安装PGI
下载pgilinux-702.tar.gz 解压后址接运行./install 然后按相关提示操作即可
•安装NCARG  直接解压即可,并把其内容移到在/usr/local/ncarg(当然要先建ncarg这个目录)
•安装NETCDF
先下载NETCDF软件包,然后tar解压,进入到解压后的该文件夹后
先配置若罔闻:(注意要指定pgi编译器编译NETCDF)
env CC=pgcc CFLAGS="-O2 -Msignextend -V" FC=pgf90 F90=pgf90 FFLAGS="-O2 -w -V"  \
CXX=pgCC CPPFLAGS="-DNDEBUG -DpgiFortran" ./configure --prefix=你的安装目录
完成后
make
make install
即可安装完成
注意:安装完以上的软件后,把它们的可执行文件路径加进你的系统环境变量中,可以在你的根目录下或用户目录下的.bashrc文件中增加

•要先安装WRF,再安装WPS
•安装WRF
•Get the WRF zipped tar file from WRFV3 from
•http://www.mmm.ucar.edu/wrf/users/download/get_source.html
•unzip and untar the file
◦tar zxvf  WRFV3.TAR.gz  
•cd WRFV3
•./configure
◦serial means single processor
◦smpar means Symmetric Multi-Processing/Shared Memory Parallel (OpenMP)
◦dmpar means Distributed Memory Parallel (MPI)
◦dm+sm means Distributed Memory with Shared Memory (for example, MPI across nodes with OpenMP within a node)
◦the second option is for nesting: 0 = no nesting, 1 = standard static nesting, 2 = nesting with a prescribed set of moves, 3 = nesting that allows a domain to follow a vortex (typhoon tracking)
•./compile em_real (or any of the directory names in ./WRFV3/test directory)
•ls -ls main/*.exe
◦if you built a real-data case, you should see ndown.exe, real.exe, and wrf.exe
◦if you built an ideal-data case, you should see ideal.exe and wrf.exe
•安装WPS
      • 获取WPS的源文件 WPSV3.TAR.gz
      o http://www.mmm.ucar.edu/wrf/users/download/get_source.html

     • 解压:
     o tar -zxvf WPSV3.TAR.gz
     进入解压后的WPS目录
     • cd WPS
    配置:
    • ./configure
    o choose one of the options
    o usually, option "1" and option “2” are for serial builds, that is the best for an initial test
    o WPS requires that you build for the appropriate Grib decoding, select an option that suitable for the data you will use with the ungrib program
    o If you select a Grib2 option, you must have those libraries prepared and built in advance
    编译:
   • ./compile
   • ls -ls *.exe
   o you should see geogrid.exe, ungrib.exe, and metgrid.exe (if you are missing both geogrid.exe and metgrid.exe, you probably need to fix where   the path to WRF is pointing in the configure.wps file; if you are missing ungrib.exe, try a Grib1-only build to further isolate the problem)

    • ls -ls util/*.exe
    o you should see a number of utility executables: avg_tsfc.exe, calc_ecmwf_p.exe, g1print.exe, g2print.exe, mod_levs.exe, plotfmt.exe, plotgrids.exe, and rd_intermediate.exe (files requiring NCAR Graphics are plotfmt.exe and plotgrids.exe)

    • if geogrid.exe and metgrid.exe executables are missing, probably the path to the WRFV3 directory structure is incorrect (found inside the configure.wps file)
   • if the ungrib.exe is missing, probably the Grib2 libraries are not linked or built correctly
   • if the plotfmt.exe or the plotgrids.exe programs are missing, probably the NCAR Graphics path is set incorrectly
完成以上安装后,即可跑WRF了

文章出处:飞诺网(www.diybl.com):http://www.diybl.com/course/6_system/linux/Linuxjs/20090502/166244.html

评分

参与人数 2金钱 +24 贡献 +4 收起 理由
天目神眉 + 12 + 2 很给力!
言深深 + 12 + 2 赞一个!

查看全部评分

密码修改失败请联系微信:mofangbao
 成长值: 0
发表于 2012-4-2 15:30:58 | 显示全部楼层
欢迎楼主多多分享,支持优秀作品
密码修改失败请联系微信:mofangbao
 成长值: 0
发表于 2012-4-2 15:31:03 | 显示全部楼层
欢迎楼主多多分享,支持优秀作品
密码修改失败请联系微信:mofangbao
发表于 2012-4-2 21:04:06 | 显示全部楼层
多谢楼主分享
密码修改失败请联系微信:mofangbao
发表于 2012-11-2 09:37:29 | 显示全部楼层
{:eb317:}多谢分享
密码修改失败请联系微信:mofangbao
发表于 2013-9-13 11:33:01 | 显示全部楼层
编译wps出错啊,解决不了咋办,没有生产三个.exe文件。
密码修改失败请联系微信:mofangbao
发表于 2014-1-14 10:39:35 | 显示全部楼层
帖子太老了
密码修改失败请联系微信:mofangbao
发表于 2015-10-26 17:01:46 | 显示全部楼层
谢谢楼主分享,楼主辛苦了
密码修改失败请联系微信:mofangbao
发表于 2016-9-4 18:18:25 | 显示全部楼层
请教:
NCL安装好了,但没有plotfmt.exe如何解决!
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表