- 积分
- 1831
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-5-6
- 最后登录
- 1970-1-1
|

楼主 |
发表于 2014-12-9 19:59:46
|
显示全部楼层
自己写中央差后可以绘出图像:
mapfactorm=wrffile->MAPFAC_M(0,:,:)
dims=dimsizes(u)
nyarps=dims(0)
print(nyarps)
nxarps=dims(1)
print(nxarps)
;**********************divergence************
d=4000.0
div=new((/nyarps,nxarps/),"float")
do i=0,nxarps-1
do j=0,nyarps-1
if(i.eq.0.and.j.eq.0) then
div(j,i)=(u(j,i+1)-u(j,i))/(d*mapfactorm(j,i))+(v(j+1,i)-v(j,i))/(d*mapfactorm(j,i))
end if
if(i.eq.0.and.j.eq.nyarps-1) then
div(j,i)=(u(j,i+1)-u(j,i))/(d*mapfactorm(j,i))+(v(j,i)-v(j-1,i))/(d*mapfactorm(j,i))
end if
。。。。。。
但是绘出图像后,想要缩小区域就出现问题了,
我先后尝试了:
res@mpLimitMode = "Corners"
res@mpLeftCornerLatF = leftbottom_lat_c
res@mpLeftCornerLonF = leftbottom_lon_c
res@mpRightCornerLatF = rightup_lat_c
res@mpRightCornerLonF = rightup_lon_c
************************************
res@mpLimitMode = "LatLon"
res@mpMaxLatF = 38
res@mpMinLatF = 32
res@mpMinLonF = 116
res@mpMaxLonF = 120
**************************************
及在输出函数中增加数值范围
plotdiv = gsn_csm_contour_map(fstwks,plotdiv(lat1:lat2,lon1:lon2),wres)
都没有作用,请问有什么好的办法呢。。或者哪里出现了问题。。
|
|