WRF模式上机手册范本_第1页
WRF模式上机手册范本_第2页
WRF模式上机手册范本_第3页
WRF模式上机手册范本_第4页
WRF模式上机手册范本_第5页
免费预览已结束,剩余7页可下载查看

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、WRF 模式上机手册一. 安装1 登陆系统连接服务器:telnet00(如果是用客户端软件,则直接用客户端软件进行登陆)输入用户名:* 输入密码:*创建自己的用户目录(如 huangq):mkdir huangq进到用户自己的目录(如 huangq):cd huangq2 编译安装 WRF 模式主体1) 获取源程序包(获取源程序代码可从 WRF 的官方网站下载, /wrf/users/download/get_sources.html2)cp/public1/Model/WRFV3.7.TAR.gz./3) 解压源程序压缩包t

2、arxzvf WRFV3.7.TAR4) 进入释放后的源程序目录cdWRFV35) 设置环境变量 NETCDFexportNETCDF= /public/software/mathlib/netcdf/4.3.0/intel/6) 配置编译环境./configure出现如下的选择列表:checking for perl5. nochecking for perl. found /usr/bin/perl (perl)Will use NETCDF in dir: /public/software/mathlib/netcdf/4.3.0/intel/ PHDF5 not set in envi

3、ronment. Will configure WRF for use without.Will use time to report timing informationIf you REALLY want Grib2 output from WRF, modify the arch/Config_new.pl script.Right now you are not getting the Jasper lib, from the environment, compiled into WRF.Please select from among the following Linux x86_

4、64 options:1. (serial)2. (smpar)3. (dmpar)4. (dm+sm)PGI (pgf90/gcc)5. (serial)6. (smpar)7. (dmpar)8. (dm+sm)PGI (pgf90/pgcc): SGI MPT9. (serial)10. (smpar)11. (dmpar)12. (dm+sm)PGI (pgf90/gcc): PGI accelerator13. (serial)14. (smpar)15. (dmpar)16. (dm+sm)INTEL (ifort/icc)17. (dm+sm)INTEL (ifort/icc):

5、Xeon Phi (MIC architecture)18. (serial)19. (smpar)20. (dmpar)21. (dm+sm)INTEL (ifort/icc): Xeon (SNB with AVX mods)22. (serial)23. (smpar)24. (dmpar)25. (dm+sm)INTEL (ifort/icc): SGI MPT26. (serial)27. (smpar)28. (dmpar)29. (dm+sm)INTEL (ifort/icc): IBM POE30. (serial)31. (dmpar)PATHSCALE (pathf90/p

6、athcc)32. (serial)33. (smpar)34. (dmpar)35. (dm+sm)GNU (gfortran/gcc)36. (serial)37. (smpar)38. (dmpar)39. (dm+sm)IBM (xlf90_r/cc_r)40. (serial)41. (smpar)42. (dmpar)43. (dm+sm)PGI (ftn/gcc): Cray XC CLE44. (serial)45. (smpar)46. (dmpar)47. (dm+sm)CRAY CCE (ftn/gcc): Cray XE and XC48. (serial)49. (s

7、mpar)50. (dmpar)51. (dm+sm)INTEL (ftn/icc): Cray XC52. (serial)53. (smpar)54. (dmpar)55. (dm+sm)PGI (pgf90/pgcc)56. (serial)57. (smpar)58. (dmpar)59. (dm+sm)PGI (pgf90/gcc): - f90=pgf9060. (serial)61. (smpar)62. (dmpar)63. (dm+sm)PGI (pgf90/pgcc): - f90=pgf90Enter selection 1-63 : 15 (建议选择 16)7) 编译模

8、式主体./compileem_real编译成功后,在 main 目录下有 real.exe 和 wrf.exe。如果没有,则说明编译失败。3 编译 WPS1) 获取源程序包 (获取源程序代码可从 WRF 的官方网站下载) cp/public1/Model/WPSV3.7.TAR.gz./2) 解压源程序压缩包tarxzvfWPSV3.7.TAR.gz3) 进入释放后的源程序目录cdWPS4) 设置环境变量 NETCDFexportNETCDF= /public/software/mathlib/netcdf/4.3.0/intel/5) 配置编译环境./configure出现如下的选择列表:W

9、ill use NETCDF in dir: /public/software/mathlib/netcdf/4.3.0/intel/ Found Jasper environment variables for GRIB2 support.$JASPERLIB = /public/software/mathlib/jasper/lib$JASPERINC = /public/software/mathlib/jasper/includePlease select from among the following supported platforms.1.Linux x86_64, gfor

10、tran(serial)2.Linux x86_64, gfortran(serial_NO_GRIB2)3.Linux x86_64, gfortran(dmpar)4.Linux x86_64, gfortran(dmpar_NO_GRIB2)5.Linux x86_64, PGI compiler(serial)6.Linux x86_64, PGI compiler(serial_NO_GRIB2)7.Linux x86_64, PGI compiler(dmpar)8.Linux x86_64, PGI compiler(dmpar_NO_GRIB2)9.Linux x86_64,

11、PGI compiler, SGI MPT(serial)10.Linux x86_64, PGI compiler, SGI MPT(serial_NO_GRIB2)11.Linux x86_64, PGI compiler, SGI MPT(dmpar)12.Linux x86_64, PGI compiler, SGI MPT(dmpar_NO_GRIB2)13.Linux x86_64, IA64 and Opteron(serial)14.Linux x86_64, IA64 and Opteron(serial_NO_GRIB2)15.Linux x86_64, IA64 and

12、Opteron(dmpar)16.Linux x86_64, IA64 and Opteron(dmpar_NO_GRIB2)17.Linux x86_64, Intel compiler(serial)18.Linux x86_64, Intel compiler(serial_NO_GRIB2)19.Linux x86_64, Intel compiler(dmpar)20.Linux x86_64, Intel compiler(dmpar_NO_GRIB2)21.Linux x86_64, Intel compiler, SGI MPT(serial)22.Linux x86_64,

13、Intel compiler, SGI MPT(serial_NO_GRIB2)23.Linux x86_64, Intel compiler, SGI MPT(dmpar)24.Linux x86_64, Intel compiler, SGI MPT(dmpar_NO_GRIB2)25.Linux x86_64, Intel compiler, IBM POE(serial)26.Linux x86_64, Intel compiler, IBM POE(serial_NO_GRIB2)27.Linux x86_64, Intel compiler, IBM POE(dmpar)28.Li

14、nux x86_64, Intel compiler, IBM POE(dmpar_NO_GRIB2)29.Linux x86_64 g95 compiler(serial)30.Linux x86_64 g95 compiler(serial_NO_GRIB2)31.Linux x86_64 g95 compiler(dmpar)32.Linux x86_64 g95 compiler(dmpar_NO_GRIB2)33.Cray XE/XC CLE/Linux x86_64, Cray compiler(serial)34.Cray XE/XC CLE/Linux x86_64, Cray

15、 compiler(serial_NO_GRIB2)35.Cray XE/XC CLE/Linux x86_64, Cray compiler(dmpar)36.Cray XE/XC CLE/Linux x86_64, Cray compiler(dmpar_NO_GRIB2)37.Cray XC CLE/Linux x86_64, Intel compiler(serial)38.Cray XC CLE/Linux x86_64, Intel compiler(serial_NO_GRIB2)39.Cray XC CLE/Linux x86_64, Intel compiler(dmpar)

16、40.Cray XC CLE/Linux x86_64, Intel compiler(dmpar_NO_GRIB2)6) Enter selection 1-40 : (建议选 17)7) 编译 WPS./compilewps编译成功后,在 WPS 的主目录下有 geogrid.exe、ungrib.exe 和 metgrid.exe。如果没有,则说明编译失败。8) 编译 WPS 的辅助工具compileutil编译成功后,在 util 目录下有g1print.exe、mod_levs.exe、plotgrids.exe、avg_tsfc.exe、g2print.exe、plotfmt.ex

17、 e 和 rd_intermediate.exe。如果没有,则说明编译失败。配置编译环境是选择了不支持GRIB2 的选项,所以 g2print.exe 是没有产生。二. 运行 WPS,进行数据前处理1 运行 geogrid.exe,生成模式格点和处理静态数据1) 获取静态资料用户可以从 WRF 的官方网站获取 WRF 模式运行所需的静态资料。高分辨率的静态数据压缩包有 371M,解压后大约有 10G,低分辩率的静态数据包有 11.2M,解压后大约有264M。在/public1/WRF-DATA/geog 目录中有已经解压后的静态数据,我们可以做一个连接后直接使用。cd/public/home/

18、zcdmn/wanglnsf/public1/WRF-DATA/geoggeog到 geog 目录下查看一下:cd geog ls2) 编辑参数列表文件 namelist.wps回到 WPS 的主目录,进行编辑操作。&sharewrf_core = ARW, max_dom = 1,io_form_geogrid = 2, opt_output_from_geogrid_path = ./, debug_level = 0/ &geogridparent_id = 1,parent_grid_ratio = 1,i_parent_start = 1,j_parent_start = 1,s_w

19、e=1,e_we=74,s_sn=1,e_sn=61,geog_data_res = 10m,2m, dx = 60000,dy = 60000,map_proj = lambert, ref_lat = 40.0ref_lon = 102truelat1 = 30.0,truelat2 = 60.0,stand_lon =102.geog_data_path = /public1/WRF-DATA/geog opt_geogrid_tbl_path = geogrid/提示:这里可以用 wps 的辅助工具 plotgrids 程序来调整自己定义的区域参数。具体操作是:a)运行 plotgri

20、ds.exe 程序util/plotgrids.exeb)运行图形查看软件 idt/usr/local/bin/ idtgmetac)弹出窗口里,点击“”键。3) 创建运行 geogrid.exe 程序的作业卡vigeogrid.cmd创建后的 geogrid.cmd 的文件内容格式如下: # # run the program geogrid.exe of WPS # job_type = parallel # class = normald# comment=WRF# initialdir = /dgpfs/fs2/user/WRF/WPS # executable = geogrid.e

21、xe# input = /dev/null # output =geogrid.out # error =geogrid.err # node = 1# tasks_per_node = 8 # node_usage = shared# network.MPI = css0,shared,US # notification = never# wall_clock_limit = 00:10:00 # queue4) 提交作业卡 geogrid.cmdllsubmitgeogrid.cmd运行成功之后,在当前目录下会产生一个静态数据文件 geo_em.d01.nc。2 运行 ungrib.exe

22、,解码 GRIB 数据1) 获取 GRIB 码数据文件用户可以从网络中获取全球模式 GRIB 格式的气象场资料。在 IBM 机器上,可以到以下目录下进行连接:/dgpfs/fs2/wrf_xp/grib/ln sf /dgpfs/fs2/wrf_xp/grib/ grib2) 根据数据来源模式具体情况,选择与此模式相应的变量列表文件。这里以 GFS 模式的气象要素场为例:lnsfungrib/Variable_Tables/Vtable.GFSVtable3) 连接 GRIB 码数据文件成 GRIB.?格式link_grib.cshgrib/gfs4) 编辑参数列表文件 namelist.wp

23、s&sharewrf_core = ARW, max_dom = 1,start_date = 2006-08-16_12:00:00, end_date = 2006-08-16_18:00:00,interval_seconds = 21600io_form_geogrid = 2, opt_output_from_geogrid_path = ./, debug_level = 0/ &ungribout_format = WPS/提示:查看 GRIB 码数据的头信息可以用 g1print.exe 命令:util/g1print.exeGRIB.AAA5) 创建运行 ungrib.exe

24、 程序的作业卡viungrib.cmd创 建 后 的 ungrib.cmd 的 文 件 内 容 格 式 如 下 : # # run the program ungrib.exe of WPS # job_type = serial # class = interactive# initialdir = /dgpfs/fs2/wrftc?/denglt/WPS # executable = ungrib.exe# input = /dev/null # output =ungrib.out # error =ungrib.err# notification = never# wall_clock

25、_limit = 00:10:00 # queue6) 提交作业卡 ungrib.cmd llsubmitungrib.cmd提示:a)ungrib 的结果文件“FILE:”可以用 WPS 的工具软件 rd_intermediate.exe 程序进行查看,以验证数据的正确性。查看时,只需执行 rd_intermediate.exe 文件,并在这个可执行文件后面加上要查看的数据文件名。例如: util/rd_intermediate.exeFILE:2005-07-30_12b)用 WPS 的工具软件 plotfmt.exe 可以绘制中间文件的图形。具体操作是:l执行 plotfmt.exe 程

26、序,并带上数据文件名作为输入参数。例如:util/plotfmt.exeFILE:2005-07-30_12l运行图形查看软件 idt idtgmetal弹出窗口里,点击“”键。3 运行 metgrid.exe,对解码后的数据进行水平插值1)编辑参数列表文件 namelist.wps&sharewrf_core = ARW, max_dom = 1,start_date = 2006-08-16_12:00:00, end_date = 2006-08-16_18:00:00,interval_seconds = 21600io_form_geogrid = 2, opt_output_fro

27、m_geogrid_path = ./, debug_level = 0/ &metgridfg_name = ./FILE io_form_metgrid = 2,opt_output_from_metgrid_path = ./, opt_metgrid_ tbl_path = metgrid/,/2)创建运行 metgrid.exe 程序的作业卡vimetgrid.cmd创 建 后 ,metgrid.cmd 文 件 的 内 容 格 式 为 : # # run the program metgrid.exe of WPS # job_type = parallel # class = no

28、rmald# initialdir = /dgpfs/fs2/wrftc?/denglt/WPS # executable = metgrid.exe# input = /dev/null # output =metgrid.out # error =metgrid.err # node = 1# tasks_per_node = 8 # node_usage = shared# network.MPI = css0,shared,US # notification = never# wall_clock_limit = 00:10:00 # queue3) 提交作业卡 metgrid.cmd

29、 llsubmitmetgrid.cmd运行成功后,在 opt_output_from_metgrid_path 设置的路径下会产生met_em.d01.yyyy-mm-dd_hh:00:00.nc 格式的文件。三. 运行 WRF 模式主体1 运行初始化程序 real1) 编辑参数列表文件 namelist.inputWRF 模式有专门运行 real.exe 和 wrf.exe 程序的路径(WRFV3/run 或者WRFV3/test/em_real)。我们转到运行路径下cd WRFV3/test/em_real/ 然后就可以编辑参数列表文件vi namelist.input 2) 连接 re

30、al.exe 的输入场数据real.exe 的输入场数据文件就是 metgrid 的输出文件,文件名格式为“met_em.d01.*”。在运行 real.exe 前,必须将这些文件拷贝或者连接到 real.exe 的运行路径 (test/em_real) 下面。 ln -sf ././WPS/met_em.d01.* . 3) 创建运行 real.exe 程序的作业卡vi real.exe 提示:根据编译 WRF 模式时的选项情况,我们可知 real.exe 编译后是串行还是并行程序。根据 real.exe 的编译情况,写出相应的串行或者并行作业卡。4) 提交作业./real.exe2 运行

31、WRF 模式1) 编辑参数列表文件 namelist.input进入到 WRF 的运行路径(WRFV2/run 或者 test/em_real)cd WRFV3/run编辑参数列表文件(一般是在 real.exe 运行完以后,wrf.exe 的参数列表就不做任何变动)vi namelist.input2) 创建运行 wrf.exe 程序的作业卡 job-submission.sh #!/bin/bash#PBS -q high#PBS -l nodes=2:ppn=24 #PBS -j oecd $PBS_O_WORKDIRcat $PBS_NODEFILE |uniq nodes NP=ca

32、t $PBS_NODEFILE | wc -lmpirun -np 48 -machinefile nodes wrf.exe运行成功后,在 real.exe 的运行路径 (test/em_real) 下面会产生 wrfinput_d01 和wrfbdy_d01 格式的文件。提示:根据编译 WRF 模式时的选项情况,我们可知 wrf.exe 编译后是串行还是并行程序。根据 wrf.exe 的编译情况,写出相应的串行或者并行作业卡。提交作业卡 wrf.cmdqsub job-submission.sh运行成功后,在 wrf.exe 的运行路径(test/em_real)下面会产生 wrfout_

33、d01_*格式的文件。四. 运行后处理程序1 编译安装程序1) 获取程序进入到自己的运行目录cd /dgpfs/fs2/wrftc?/denglt 拷贝程序包cp /u/wrf_xp/src/wrfpost20070829.tar 释放程序包tar xvf wrfpost20070829.tar2) 配置编译环境进入到后处理程序目录cd wrfpost编辑编译规则文件 makefile,进行编译环境配置vi makefile3) 编译程序在 src 目录下,编译 MICAPS 处理程序make micaps在 src 目录下,编译 GrADS 处理程序make grads2 处理 MICAPS 数据1) 编辑参数配置文件 namelist.input进入 MICAPS 处理路径cd micaps编辑参数配置文件vi nam

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论