WRF
官网
http://www2.mmm.ucar.edu/wrf/users/
简介
WRF(Weather Research and Forecasting)是新一代中尺度预报模式,被广泛应用的开源气象模拟软件。
准备工作
运行以下示例需要在创建集群时选择安装WRF相关软件包。
算例1
下载链接:
http://www2.mmm.ucar.edu/wrf/users/download/get_sources_wps_geog.html
运行步骤:
step 1. 运行module avail 查看是否安装WRF软件:
- [backcolor=transparent]$ export MODULEPATH[backcolor=transparent]=/[backcolor=transparent]opt[backcolor=transparent]/[backcolor=transparent]ehpcmodulefiles[backcolor=transparent]/
- [backcolor=transparent]$ module avail
- [backcolor=transparent]------------------------------[backcolor=transparent] [backcolor=transparent]/[backcolor=transparent]opt[backcolor=transparent]/[backcolor=transparent]ehpcmodulefiles [backcolor=transparent]-------------------------------------
- [backcolor=transparent]wrf[backcolor=transparent]-[backcolor=transparent]mpich[backcolor=transparent]/[backcolor=transparent]3.8[backcolor=transparent].[backcolor=transparent]1[backcolor=transparent] wrf[backcolor=transparent]-[backcolor=transparent]openmpi[backcolor=transparent]/[backcolor=transparent]3.8[backcolor=transparent].[backcolor=transparent]1[backcolor=transparent] mpich[backcolor=transparent]/[backcolor=transparent]3.2[backcolor=transparent].[backcolor=transparent]2[backcolor=transparent] openmpi[backcolor=transparent]/[backcolor=transparent]1.10[backcolor=transparent].[backcolor=transparent]7
step 2. module load 加载WRF:
- [backcolor=transparent]$ [backcolor=transparent]module[backcolor=transparent] load wrf[backcolor=transparent]-[backcolor=transparent]mpich[backcolor=transparent]/[backcolor=transparent]3.8[backcolor=transparent].[backcolor=transparent]1[backcolor=transparent] mpich
- [backcolor=transparent]$ echo $WPSHOME $WRFHOME
- [backcolor=transparent]/[backcolor=transparent]opt[backcolor=transparent]/[backcolor=transparent]WRF_WPS[backcolor=transparent]-[backcolor=transparent]mpich[backcolor=transparent]-[backcolor=transparent]3.8[backcolor=transparent].[backcolor=transparent]1[backcolor=transparent]/[backcolor=transparent]WPS [backcolor=transparent]/[backcolor=transparent]opt[backcolor=transparent]/[backcolor=transparent]WRF_WPS[backcolor=transparent]-[backcolor=transparent]mpich[backcolor=transparent]-[backcolor=transparent]3.8[backcolor=transparent].[backcolor=transparent]1[backcolor=transparent]/[backcolor=transparent]WRFV3
Step 3. 将安装的WPS和WRF软件拷贝到工作目录,并将算例拷贝到相应目录位置。
- [backcolor=transparent]$ cp [backcolor=transparent]–[backcolor=transparent]r $WPSHOME $WPSCOPYHOME
- [backcolor=transparent]$ cp [backcolor=transparent]–[backcolor=transparent]r $WRFHOME $WRFCOPYHOME
Step 4. 进入WPSCOPYHOME软件目录,并执行:
- [backcolor=transparent]$ srun [backcolor=transparent]--[backcolor=transparent]mpi[backcolor=transparent]=[backcolor=transparent]pmi2 [backcolor=transparent]–[backcolor=transparent]n [backcolor=transparent]1[backcolor=transparent] [backcolor=transparent]./[backcolor=transparent]geogrid[backcolor=transparent].[backcolor=transparent]exe
- [backcolor=transparent]$ [backcolor=transparent]./[backcolor=transparent]link_grib[backcolor=transparent].[backcolor=transparent]csh [backcolor=transparent]下载的气象数据[backcolor=transparent]
- [backcolor=transparent]$ ln [backcolor=transparent]–[backcolor=transparent]sf ungrib[backcolor=transparent]/[backcolor=transparent]Variable_Tables[backcolor=transparent]/[backcolor=transparent]Vtable[backcolor=transparent].[backcolor=transparent]GFS [backcolor=transparent]Vtable[backcolor=transparent] [backcolor=transparent]# 选择气象数据相应的Vtable,如GFS
- [backcolor=transparent]$ srun [backcolor=transparent]--[backcolor=transparent]mpi[backcolor=transparent]=[backcolor=transparent]pmi2 [backcolor=transparent]–[backcolor=transparent]n [backcolor=transparent]1[backcolor=transparent] [backcolor=transparent]./[backcolor=transparent]ungrib[backcolor=transparent].[backcolor=transparent]exe
- [backcolor=transparent]$ srun [backcolor=transparent]--[backcolor=transparent]mpi[backcolor=transparent]=[backcolor=transparent]pmi2 [backcolor=transparent]–[backcolor=transparent]n [backcolor=transparent]1[backcolor=transparent] [backcolor=transparent]./[backcolor=transparent]metgrid[backcolor=transparent].[backcolor=transparent]exe
Step 5. 进入WRFCOPYHOME软件的run目录,并执行:
- [backcolor=transparent]$ ln [backcolor=transparent]–[backcolor=transparent]sf $WPSCOPYHOME[backcolor=transparent]/[backcolor=transparent]met_em[backcolor=transparent]*[backcolor=transparent] [backcolor=transparent].[backcolor=transparent] [backcolor=transparent]#连接WPS的处理结果
- [backcolor=transparent]$ srun [backcolor=transparent]--[backcolor=transparent]mpi[backcolor=transparent]=[backcolor=transparent]pmi2 [backcolor=transparent]–[backcolor=transparent]n [backcolor=transparent]1[backcolor=transparent] [backcolor=transparent]./[backcolor=transparent]real[backcolor=transparent].[backcolor=transparent]exe
- [backcolor=transparent]$ srun [backcolor=transparent]--[backcolor=transparent]mpi[backcolor=transparent]=[backcolor=transparent]pmi2 [backcolor=transparent]–[backcolor=transparent]n [backcolor=transparent]4[backcolor=transparent] [backcolor=transparent]./[backcolor=transparent]wrf[backcolor=transparent].[backcolor=transparent]exe