- 积分
- 19709
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2014-8-18
- 最后登录
- 1970-1-1
成长值: 0
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
#!/bin/csh
# User needs modification of these paths:
setenv WRFDIR /home/student/WRF/WRFV3/test/em_real # WRF3.6 directory
setenv WRFSRC /home/student/WRF/ # WRF directory (Contains WPS & WRFV3)
setenv DATA /home/student/data/ERA-interim # Initial & Boundary condition files directory
echo $WRFDIR $CDIR
# working directory:
cd $WRFSRC/WPS
# Run geogrid.exe:
echo "+--------------------------------------------------+"
echo "| Start geogrid.exe |"
echo "+--------------------------------------------------+"
$WRFSRC/WPS/geogrid.exe
echo "+--------------------------------------------------+"
echo "| End of geogrid.exe |"
echo "+--------------------------------------------------+"
echo ""
# Run ungrib.exe:
echo "Ungrib Pressure Data"
sed -i -e '46s/FILE/3D/g' $WRFSRC/WPS/namelist.wps
echo "Link Vtable.ECMWF"
ln -sf $WRFSRC/WPS/ungrib/Variable_Tables/Vtable.ECMWF $WRFSRC/WPS/Vtable
echo "Link Met Data"
./link_grib.csh $DATA/ERA-Int_pl_20090401_20090430.grib
echo "+--------------------------------------------------+"
echo "| Start Ungrib Pressure Level |"
echo "+--------------------------------------------------+"
$WRFSRC/WPS/ungrib.exe
echo "Ungrib Surface Data"
sed -i -e '46s/3D/SFC/g' $WRFSRC/WPS/namelist.wps
echo "Link Met Data"
./link_grib.csh $DATA/ERA-Int_sfc_20090401_20090430.grib
echo "+--------------------------------------------------+"
echo "| Start Ungrib Surface Level |"
echo "+--------------------------------------------------+"
$WRFSRC/WPS/ungrib.exe
echo "+--------------------------------------------------+"
echo "| End of ungrib.exe |"
echo "+--------------------------------------------------+"
echo ""
# Run metgrid.exe:
echo "+--------------------------------------------------+"
echo "| Start metgrid.exe for bdy |"
echo "+--------------------------------------------------+"
$WRFSRC/WPS/metgrid.exe
echo "+--------------------------------------------------+"
echo "| End of metgrid.exe for bdy |"
echo "+--------------------------------------------------+"
echo ""
echo "MOVE TO THE WRF DIRECTORY"
# Run real.exe for boundary files:
echo "+--------------------------------------------------+"
echo "| Move files to em_real |"
echo "+--------------------------------------------------+"
cd $WRFDIR
mv $WRFSRC/WPS/met_em* .
echo "Run Real"
echo "+--------------------------------------------------+"
echo "| Start real.exe for bdy |"
echo "+--------------------------------------------------+"
$WRFSRC/WRFV3/test/em_real/real.exe
echo "+--------------------------------------------------+"
echo "| End real.exe for bdy |"
echo "+--------------------------------------------------+"
echo ""
# Run wrf.exe:
echo "+--------------------------------------------------+"
echo "| Start WRF forecasts..... |"
echo "+--------------------------------------------------+"
$WRFSRC/WRFV3/test/em_real/wrf.exe
echo "+--------------------------------------------------+"
echo "| End of WRF forecasts.... |"
echo "+--------------------------------------------------+"
echo ""
echo "*******************************"
echo "* Forecast script completes *"
echo "*******************************"
自己改写了一下网上的一个脚本,我觉得我这种编程白痴都看得懂的话基本是个人就看得懂了
初始场用的是ERA-Interim,自己跑了一下,感觉只要两个namelist没错就是没问题的,希望给诸位一点启发。
ps,mpi的话就在real.exe和wrf.exe那里改一下就好。
|
|