- 积分
- 23701
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2014-8-18
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
诸位新年好!
我想用NCL更改下一个wrfout里的Times变量。 这个变量按道理输出的时间应该为2010-06-19_01:00:00, 但变量Times里面确实2010-06-19_01:00:01.
我首先把Times展示出来,显示的是
Variable: times
Type: character
Total Size: 19 bytes
19 values
Number of Dimensions: 2
Dimensions and sizes: [Time | 1] x [DateStrLen | 19]
Coordinates:
Number Of Attributes: 0
(0,0) 2
(0,1) 0
(0,2) 1
(0,3) 0
(0,4) -
(0,5) 0
(0,6) 6
(0,7) -
(0,8) 1
(0,9) 9
(0,10) _
(0,11) 0
(0,12) 1
(0,13) :
(0,14) 0
(0,15) 0
(0,16) :
(0,17) 0
(0,18) 1
可以看到最后那里是(0,18) 1 ==> 01:00:01
我用的更改这个的脚本是这样:
begin
f = addfile("cstm_d01_2010-06-19_01_00_00.nc", "r+")
times = f->Times
times(0,18) = "0"
f->Times = times
delete(f)
end
显示错误为:
fatal:Assignment type mismatch, right hand side can't be coerced to type of left hand side
fatal:["Execute.c":8637]:Execute: Error occurred at or near line 10 in file test2.ncl
请问下如何正确的更改,谢谢
|
|