Chinaunix首页 | 论坛 | 博客
  • 博客访问: 165650
  • 博文数量: 9
  • 博客积分: 4045
  • 博客等级: 上校
  • 技术积分: 510
  • 用 户 组: 普通用户
  • 注册时间: 2007-07-19 01:35
文章分类
文章存档

2011年(1)

2010年(5)

2009年(3)

我的朋友
最近访客

分类: LINUX

2009-04-28 14:06:11

如何安装WRFV3.0

转自:

首先本人安装的软件和系统环境:

操作系统: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
  • 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


     • 解压:
    
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了

阅读(2031) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:WRF目录文件说明

给主人留下些什么吧!~~