WRFChem restart报错

报错信息

DYNAMICS OPTION: Eulerian Mass Coordinate
   alloc_space_field: domain            1 ,              390974700  bytes allocated
 RESTART run: opening wrfrst_d01_2017-01-14_00:00:00 for reading
   MMINLU error on input
Timing for processing restart file for domain        1:   19.52120 elapsed seconds
Max map factor in domain 1 =  1.10. Scale the dt in the model accordingly.
-------------- FATAL CALLED ---------------
FATAL CALLED FROM FILE:  <stdin>  LINE:    9252
STOP in Noah-MP read_mp_veg_parameters

检查 wrfrst_d01_2017-01-14_00:00:00 发现 MMINLU = "" ; 而wrfinput 的 MMINLU = "MODIFIED_IGBP_MODIS_NOAH"

使用ncl脚本修改 wrfrst_d01_2017-01-14_00:00:00

load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl"

begin
  ; 打开现有的文件(假设文件已经存在)
  f = addfile("wrfrst_d01_2017-01-14_00:00:00", "w")

  if (.not.ismissing(f)) then
    ; 定义和设置全局属性
    globalAtt = True
    globalAtt@MMINLU = "MODIFIED_IGBP_MODIS_NOAH" ;;;改成wrfinput中MMINLU的属性

    ; 使用 fileattdef 函数修改文件属性
    fileattdef(f, globalAtt)
  else
    print("Error: The file 'wrfrst_d01_2017-01-14_00:00:00' cannot be opened.")
  end if
end

之后正常运行wrf.exe即可

namelist.input中修改

start_year               = 2017,
start_month              = 01,
start_day                = 14,
start_hour               = 00,
start_minute             = 00,
start_second             = 00,
...............................
restart                  = .true.,

参考链接

https://bbs.06climate.com/forum.php?mod=viewthread&tid=101964&pid=1228975&page=1&extra=#pid1228975 

 

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值