- 积分
- 17224
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-11-23
- 最后登录
- 1970-1-1
|
发表于 2017-12-26 22:10:39
|
显示全部楼层
u = short2flt(f1->u(a(x),{700:850},{22:38},{99:116}))
v = short2flt(f1->v(a(x),{700:850},{22:38},{99:116}))
lat = f1->latitude({22:38})
f = (2.*2.*3.1415926/86400)*sin(lat*3.1415926/180.)
dx = 6371000.*cos(lat*3.1415926/180.)*3.1415926/180.*0.5
dy = 6371000.*3.1415926/180.*0.5
advvor = new((/6,65,69/),float)
advvor1 = new((/6,65,69/),float)
advvor2 = new((/6,65,69/),float)
advvor = 0.0
advvor1 = 0.0
advvor2 = 0.0
do z = 0,5,1
do i = 1,63,1
do j = 1,67,1
advvor1(z,i,j) = -u(z,i,j)*((vor(z,i,j+1)-vor(z,i,j-1))/dx(i))-v(z,i,j)*((vor(z,i+1,j)-vor(z,i-1,j))/dy)
advvor2(z,i,j) = -v(z,i,j)*(f(i+1)-f(i-1))/dy
end do
end do
end do
advvor = (advvor1 + advvor2)*1.e9
copy_VarMeta(vor,advvor)
printMinMax(advvor,True) |
|