- 积分
- 228
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2011-8-30
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
使用天目介绍的方法:
http://bbs.06climate.com/forum.php?mod=viewthread&tid=4273
用vi命令修改此程序中的subroutine USER_CODE这一
改为:
!-------------------------------------------------------------------------------------------
subroutine USER_CODE (data_real,data_dp_real,data_int,dim1,dim2,dim3,var)
if(var=='HGT') then
data_real(160:200,125:155,1:1)=data_real(160:200,125:155,1:1)*0.5
end if
end subroutine USER_CODE
!------------------------------READ FIRST--------------------------------------------------
运行出错:
[wxy@wxy em_real]$ pgf90 read_wrf_nc_change.f -L/home/wxy/wxy/netcdf/lib -lnetcdf -lm \-I/home/wxy/wxy/netcdf/include -Mfree -o read_wrf_nc_change
read_wrf_nc_change.f:
PGF90-S-0124-Relational expression mixes character with numeric data (read_wrf_nc_change.f: 1595)
PGF90-S-0076-Subscripts specified for non-array variable data_real (read_wrf_nc_change.f: 1596)
PGF90-S-0076-Subscripts specified for non-array variable data_real (read_wrf_nc_change.f: 1596)
PGF90-S-0076-Subscripts specified for non-array variable data_real (read_wrf_nc_change.f: 1596)
PGF90-S-0076-Subscripts specified for non-array variable data_real (read_wrf_nc_change.f: 1596)
PGF90-S-0076-Subscripts specified for non-array variable data_real (read_wrf_nc_change.f: 1596)
PGF90-S-0076-Subscripts specified for non-array variable data_real (read_wrf_nc_change.f: 1596)
PGF90-S-0072-Assignment operation illegal to external procedure data_real (read_wrf_nc_change.f: 1596)
0 inform, 0 warnings, 8 severes, 0 fatal for user_code
PGF90-S-0302-Unmatched ENDSUBROUTINE statement (read_wrf_nc_change.f: 1638)
0 inform, 0 warnings, 1 severes, 0 fatal for MAIN
[wxy@wxy em_real]$ chmod +x read_wrf_nc_change.f
[wxy@wxy em_real]$ ./read_wrf_nc_change.f wrfinput_d01 -EditData HGT
./read_wrf_nc_change.f:行1: Special: 未找到命令
information: ERROR: cannot open `information' (No such file or directory)
on: ERROR: cannot open `on' (No such file or directory)
the: ERROR: cannot open `the' (No such file or directory)
screen: ERROR: cannot open `screen' (No such file or directory)
./read_wrf_nc_change.f:行3: Can: 未找到命令
./read_wrf_nc_change.f:行4: 未预期的符号 `(' 附近有语法错误
./read_wrf_nc_change.f:行4: `! Can read double precision file (like WRF-Var)'
[wxy@wxy em_real]$
|
|