日志
-
- 分享
NCL使用if函数老是报错原因
-
无敌大壮壮 2023-11-23 15:07
-
fatal:Conditional statements (if and do while) require SCALAR logical values, see all and any functions 原代码 if(q21)then w=w+1 pressure(q,p)=pressure1(w) &nbs ...
-
170 次阅读|0 个评论
-
- 分享
根据站内大佬改的把最大最小值输出来并取出对应经纬
-
无敌大壮壮 2023-4-18 13:10
-
x1d = ndtooned(tmpq(5,:,:)) ; convert 2D array to 1D for use in maxind inds = ind_resolve(maxind (x1d),dimsizes(tmpq(5,:,:))) ; convert 1D array back to 2D ilat = inds(0,0) ; select the latitude index wh ...
-
123 次阅读|0 个评论