爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 8640|回复: 0

台风涡度垂直剖面图

[复制链接]
发表于 2021-9-13 20:07:36 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
辐合在低层,都到不了500hPa,不知道哪里出问题啦,求指点

load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl"
begin
        a = addfile("wrfout_d01_2017-08-21_18:00:00","r")

        type = "png"
        wks = gsn_open_wks(type,"prevor")
        gsn_define_colormap(wks,"WhiteBlueGreenYellowRed")
        times  = wrf_user_getvar(a,"times",-1) ; get times in the file
    ntimes = dimsizes(times)         ; number of times in the file
       
        do it = 14,16,2
        print("Working on time: " + times(it) )
        print(it)
        u  = wrf_user_getvar(a,"ua",it)
        v  = wrf_user_getvar(a,"va",it)
        p  = wrf_user_getvar(a, "pressure",it)
       
        latm2d=a->XLAT(0,:,:)
lonm2d=a->XLONG(0,:,:)
fstart=min(latm2d)
fend=max(latm2d)
dims=dimsizes(latm2d)
lat = fspan(fstart, fend, dims(0))
lat@units = "degrees_north"
fstart=min(lonm2d)
fend=max(lonm2d)
lon = fspan(fstart, fend, dims(1))
lon@units = "degrees_east"
printVarSummary(lon)
        ;printVarSummary(p)
       
        vor = uv2dv_cfd(u, v, lat, lon, 1)
        vor@long_name = "Vorticity"
        vor@units = "10 -5 s -1"
        ;printVarSummary(vor)
       
        plane=(/111.7,21.7/)
        ;plane1=(/120,21.7/)
        ;rh_plane2 = wrf_user_intrp3d(rh,p,"v",plane,90.0,False)
       
         vor_plane = wrf_user_intrp3d(vor,p,"v",plane,90.0,False)
         ;printVarSummary(vor_plane)
     p_plane = wrf_user_intrp3d(p, p,"v",plane, 90.,False)
    lon_plane = wrf_user_intrp2d(lonm2d,plane,90.,False)
        ;print(lon_plane)
  ;X_plane = wrf_user_intrp2d(lon,plane,0,False)
;xmin=min(X_plane)
;xmax=max(X_plane)

    vor_plane!0="level"
    vor_plane!1="lon"
    vor_plane&level = p_plane(:, 0)
    vor_plane&lon = lon_plane
        ;vor_plane@_FillValue=-999
        ;printVarSummary(vor_plane)
        ;print(vor_plane&level)
    ; MAKE PLOTS
       
        scale = 1.e05
         vor_plane=vor_plane*scale
         
        opts = True           
      opts@cnLinesOn = False              
      opts@cnFillOn = True  
      opts@cnLineLabelsOn = False
      opts@cnLineLabelFontHeightF = 0.01
      opts@cnLineLabelInterval = 1      ; Dengzhixian Biaozhu JianGe
      opts@cnLineLabelPerimOn  = False  ; Dengzhixian Biaozhu Biankuang de Xianyin Kaiguan
      opts@gsnSpreadColorEnd    = -3    ; End third from the last color in color map
      opts@cnLineLabelPlacementMode = "Computed"
      opts@cnLineLabelDensityF = 0.0
      opts@lbTitleOn            = False
      opts@pmLabelBarOrthogonalPosF = -0.05
      opts@cnLevelSelectionMode = "ExplicitLevels"
      opts@cnLevels             = (/ -20,-16,-12, -8, -4, 0, 4,  8,  12,  16,  20,  24, 28, 32, 36/)
      opts@cnFillColors         = (/  80 ,64, 48, 32, 16, 10, 140,160,180, 190, 200,220,230,240,255/)
          ;opts@SubFieldTitle =  times(it)
          ;opts@SubFieldTitle =  times(it)
          opts@tiMainString = times(it)
          
          opts@tmXBMode = "Manual"
          opts@tmXBTickStartF = 124
          opts@tmXBTickEndF = 112
          opts@tmXBTickSpacingF = 2
          ;opts@tmXBValues =
          ;opts@tmXBMinorOn=True
     plot  = gsn_csm_pres_hgt(wks,vor_plane(1:71,{112:124}),opts )
         
         x=117.4
         y=1000
         polyres               = True          ; poly marker mods desired
     polyres@gsMarkerIndex = 16            ; choose circle as polymarker
     polyres@gsMarkerSizeF = 40.0           ; select size to avoid streaking
     polyres@gsMarkerColor = (/"GREEN"/)   ; choose color
     gsn_polymarker(wks,plot,x,y,polyres)
        end do
end


2300.png
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表