- 积分
- 78
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2015-8-30
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
大家好,请教一个问题。我在做wrf的集合预报,利用gen_be_ensmean.exe 将几个集合成员生成平均场的时候,遇到问题如下log文件所示:
[1] Initialize information.
Directory = .
filename = wrfout_d01_2006-10-28_00:00:00
Number of ensemble members = 10
Number of variables to average = 7
List of variables to average = U V W PH T MU QVAPOR
[2] Extract necessary fields from WRF ensemble forecasts.
Computing ensemble mean for variable U
APM open
./wrfout_d01_2006-10-28_00:00:00.e001
---------------------------- FATAL ERROR -----------------------
---------------------------- FATAL ERROR -----------------------
Fatal error in file: gen_be_ensmean.b LINE: 128
Fatal error in file: gen_be_ensmean.b LINE: 128
U variable is not in input file
U variable is not in input file
报的错就是 U, ' variable is not in input file' 请教一下大家有没有遇到过这种情况。部分代码如下:
write(6,'(/a)')' [2] Extract necessary fields from WRF ensemble forecasts.'
!---------------------------------------------------------------------------------------------
do v = 1, nv ! Loop over variables to average:
var = cv(v)
write(6,'(2a)')' Computing ensemble mean for variable ', var
do member = 1, num_members
write(UNIT=ce,FMT='(i3.3)')member
! Open file:
input_file = trim(directory)//'/'//trim(filename)//'.e'//trim(ce)
print *, 'APM open ',input_file
length = len_trim(input_file)
rcode = nf_open( input_file(1:length), NF_NOWRITE, cdfid )
if ( member == 1 ) then
! Get variable ID:
rcode = nf_inq_varid ( cdfid, var, id_var )
! Check variable is in file:
if ( rcode /= 0 ) then
write(UNIT=message(1),FMT='(A,A)') &
var, ' variable is not in input file'
call da_error(__FILE__,__LINE__,message(1:1))
end if
检查了输入的nc文件没有问题(是wrf生成的结果文件),包含u这个变量。卡了几天了,跪求大神指点,感激不尽。qq1271135716.
|
|
|