爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 237|回复: 0

u风场纬向剖面图

[复制链接]
发表于 6 天前 | 显示全部楼层 |阅读模式

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

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

x
u风场纬向剖面图,代码如下:;********************************************
; h_long_5.ncl
;********************************************
;
; These files are loaded by default in NCL V6.2.0 and newer
; load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
; load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
;********************************************
begin
  f     = addfile ("D:/20250826-27.nc" , "r")  
  u     = f->u
; ===========================
; color plot
; ===========================
  wks   = gsn_open_wks ("png", "D:/h_long" )          ; open workstation

  res                      = True                  ; plot mods desired
  res@tiMainString         = "August 2025"        ; title

  res@cnLevelSelectionMode = "ManualLevels"        ; manual contour levels
  res@cnLevelSpacingF      = 5.0                   ; contour interval
  res@cnMinLevelValF       = -50.                  ; min level
  res@cnMaxLevelValF       =  50.                  ; max level
  res@cnLineLabelsOn       = True                  ; turn on line labels
  res@cnFillOn             = True                  ; turn on color fill
  res@cnFillPalette        = "BlWhRe"              ; set color map

; note this data is already on pressure levels. If this were model data,
; it would be necessary to interpolate the data from hybrid coordinates
; to pressure levels.
  plot = gsn_csm_pres_hgt(wks,u(0,:,3,:),res)

; the "{}" allows you to use coordinate subscripting to select a particular
; latitude vice array indice of the latitude you want.
end
结果图如下:



u(0,;,3,;)第一个时次,纬向第4个格点

u(0,;,3,;)第一个时次,纬向第4个格点
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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