爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 11447|回复: 3

WRFDA数据同化运行gen_be_wrapper.ksh出错

[复制链接]

新浪微博达人勋

发表于 2018-1-1 20:56:33 | 显示全部楼层 |阅读模式

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

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

x

运行gen_be_wrapper.ksh时,在$RUN_DIR  directory生成了be.dat文件。但是出现
cd: /home/sxw/program/WRFDA/var/scripts/gen_be/gen_be5_cv5/working: [No such file or directory]
运行代码及过程如下:
  1. [sxw@localhost gen_be]$ ./gen_be_wrapper.ksh

  2. Mon Jan 1 18:04:39 EST 2018 Start
  3. WRFVAR_DIR is /home/sxw/program/WRFDA exported
  4. RUN_DIR is /home/sxw/program/WRFDA/var/scripts/gen_be/gen_be5_cv5
  5. ---------------------------------------------------------------
  6. Run Stage 0: Calculate ensemble perturbations from model forecasts.
  7. ---------------------------------------------------------------
  8. Beginning CPU time: Mon Jan  1 18:04:39 EST 2018
  9. gen_be_stage0_wrf: Calculating standard perturbation fields valid at time  2015010200
  10. 2015010100 /home/sxw/program/WRFDA/var/scripts/gen_be/forcasts/2015010100/wrfout_d02_2015-01-02_00:00:00 /home/sxw/program/WRFDA/var/scrip                                  ts/gen_be/forcasts/2015010112/wrfout_d02_2015-01-02_00:00:00
  11. gen_be_stage0_wrf: Calculating standard perturbation fields valid at time  2015010212
  12. 2015010112 /home/sxw/program/WRFDA/var/scripts/gen_be/forcasts/2015010112/wrfout_d02_2015-01-02_12:00:00 /home/sxw/program/WRFDA/var/scrip                                  ts/gen_be/forcasts/2015010200/wrfout_d02_2015-01-02_12:00:00
  13. Ending CPU time: Mon Jan  1 18:04:52 EST 2018
  14. ---------------------------------------------------------------
  15. Run Stage 1: Read standard fields, and remove time/ensemble/area mean.
  16. ---------------------------------------------------------------
  17. Beginning CPU time: Mon Jan  1 18:04:52 EST 2018
  18. Ending CPU time: Mon Jan  1 18:04:53 EST 2018
  19. ---------------------------------------------------------------
  20. Run Stage 2: Calculate regression coefficients.
  21. ---------------------------------------------------------------
  22. Beginning CPU time: Mon Jan  1 18:04:53 EST 2018
  23. Ending CPU time: Mon Jan  1 18:04:54 EST 2018
  24. ---------------------------------------------------------------
  25. Run Stage 2a: Calculate control variable fields.
  26. ---------------------------------------------------------------
  27. Beginning CPU time: Mon Jan  1 18:04:54 EST 2018
  28. Ending CPU time: Mon Jan  1 18:04:54 EST 2018
  29. ---------------------------------------------------------------
  30. Run Stage 3: Read 3D control variable fields, and calculate vertical covariances.
  31. ---------------------------------------------------------------
  32. Beginning CPU time: Mon Jan  1 18:04:54 EST 2018
  33. Ending CPU time: Mon Jan  1 18:04:57 EST 2018
  34. ---------------------------------------------------------------
  35. Run Stage 4: Calculate horizontal covariances (regional lengthscales).
  36. ---------------------------------------------------------------
  37. Beginning CPU time: Mon Jan  1 18:04:57 EST 2018
  38. Ending CPU time: Mon Jan  1 18:17:44 EST 2018
  39. Ending CPU time: Mon Jan  1 18:17:44 EST 2018
  40. /home/sxw/program/WRFDA/var/scripts/gen_be/gen_be_cov3d.ksh[10]: cd: /home/sxw/program/WRFDA/var/scripts/gen_be/gen_be5_cv5/working: [No s                                  uch file or directory]
  41. /home/sxw/program/WRFDA/var/scripts/gen_be/gen_be_cov3d.ksh[10]: cd: /home/sxw/program/WRFDA/var/scripts/gen_be/gen_be5_cv5/working: [No s                                  uch file or directory]
  42. /home/sxw/program/WRFDA/var/scripts/gen_be/gen_be_cov2d.ksh[10]: cd: /home/sxw/program/WRFDA/var/scripts/gen_be/gen_be5_cv5/working: [No s                                  uch file or directory]
  43. ---------------------------------------------------------------
  44. Run gen_be_cov2d.
  45. ---------------------------------------------------------------

  46. Mon Jan 1 18:17:48 EST 2018 Finished
复制代码
我的gen_be_wrapper.ksh脚本如下设置
  1. export WRFVAR_DIR=/home/sxw/program/WRFDA

  2. export NL_CV_OPTIONS=5       # Specify control variable options
  3.                              # NL_CV_OPTIONS = 5: default wind control variables (psi and chi_u)
  4.                              #                 7: u/v wind control variables

  5. export BIN_TYPE=5            # How data is binned for calculating statistics
  6.                              # BIN_TYPE = 5 (default, recommended): Average over all horizontal points;
  7.                              #                                        i.e. only one bin per vertical level
  8.                              #            0: No binning
  9.                              #            1: X-direction mean
  10.                              #            2: Bin by latitude and height
  11.                              #            3: Bin by latitude and vertical level
  12.                              #            4: Fixed number of horizontal bins and by vertical level
  13.                              #            6: Average over all points (only 1 bin)

  14. export START_DATE=2015010200 # the first perturbation valid date
  15. export END_DATE=2015010212   # the last perturbation valid date
  16. export NUM_LEVELS=56         # = bottom_top = e_vert - 1
  17. #export DATA_ON_LEVELS=.true. # "False if fields projected onto modes."

  18. export BE_METHOD=NMC
  19. export FCST_RANGE=12
  20. #Example of changes required for "be_method=ENS":
  21. #export BE_METHOD=ENS
  22. #export NE=2 # 30

  23. export FC_DIR=/home/sxw/program/WRFDA/var/scripts/gen_be/forcasts   # where wrf forecasts are
  24. export RUN_DIR=`pwd`/gen_be${BIN_TYPE}_cv${NL_CV_OPTIONS}
  25. export DOMAIN=02
  26. export FCST_RANGE1=24
  27. export FCST_RANGE2=12
  28. export INTERVAL=12
  29. export STRIDE=1
  30. export USE_RFi=true
  31. #[2] Run gen_be:
  32. if ${USE_RFi}; then
  33.    ${WRFVAR_DIR}/var/scripts/gen_be/gen_be.ksh
  34. else                          # loop over wavelet filter lengths:
  35.    export DO_NORMALIZE=.false.  # normalize before wavelet transform?
  36.    NEW_SUF=
  37.    export RUN_DIR=${RUN_DIR}.
  38.    for L in 7;do
  39.       export WAVELET_NBAND=$L
  40.       for N in C;do          # possible WAVELET_NAME values: B C D V
  41.          export WAVELET_NAME=$N
  42.          if [[ $WAVELET_NAME == B ]];then
  43.             export ISTRT=18
  44.             export IINC=1
  45.             export IFIN=$ISTRT
  46.          elif [[ $WAVELET_NAME == C ]];then
  47.             export ISTRT=30
  48.             export IINC=6
  49.             export IFIN=30
  50.          elif [[ $WAVELET_NAME == D ]];then
  51.             export ISTRT=6
  52.             export IINC=2
  53.             export IFIN=20
  54.          elif [[ $WAVELET_NAME == V ]];then
  55.             export ISTRT=24
  56.             export IINC=1
  57.             export IFIN=$ISTRT
  58.          fi
  59.          for I in `seq ${ISTRT} ${IINC} ${IFIN}`; do
  60.             export WAVELET_FILT_LEN=$I
  61.             OLD_SUF=${NEW_SUF}
  62.             NEW_SUF=${WAVELET_NBAND}${WAVELET_NAME}${WAVELET_FILT_LEN}n
  63.             export RUN_DIR=${RUN_DIR%${OLD_SUF}}${NEW_SUF}
  64.             ${WRFVAR_DIR}/var/scripts/gen_be/gen_be.ksh
  65.          done
  66.       done
  67.    done
复制代码
不知道哪儿有什么问题?还请各位大神指教!非常感谢啦!


密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2021-9-22 10:03:58 | 显示全部楼层
请问大神,怎么解决的这个问题啊
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2022-4-13 11:52:32 | 显示全部楼层
应该是你的.bashrc文件环境变量里面指定了workdir,导致这里生成的目录和文件自动放到那边的workdir里了。我这两天也碰到了这个问题,把.bashrc里面指定工作目录workdir注释掉就可以了
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2024-4-7 11:09:35 | 显示全部楼层
非常感谢楼主分享经验,避免踩坑
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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