爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 5573|回复: 0

[作图] 想看看台风,用FNL资料画风场图。

[复制链接]
发表于 2017-9-9 16:18:26 | 显示全部楼层 |阅读模式

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

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

x
最近北美台风新闻很多
所以试着画画
ncl官方教程没找到画fnl的资料,所以用的era的模板
想把第一层的U V计算个合成风速大小画出来
未果,求指点

;************************************************
; era40_1.ncl
;
; Concepts illustrated:
;   - Reading GRIB data
;   - Plotting ERA40 data
;   - Spanning the full color map for contour fill
;   - Drawing color-filled contours over a cylindrical equidistant map
;   - Selecting a different color map
;
;*************************************************
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"  
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"  
;************************************************
begin
;************************************************
; create pointer to file and read in data
;************************************************
  in = addfile("fnl_20170906_00_00.grib2","r")
  U = in->UGRD_P0_L100_GLL0(0,:,:)
  V = in->VGRD_P0_L100_GLL0(0,:,:)
;************************************************
; create default plot
;************************************************
  spd=sqrt(U*U+V*V)

  wks = gsn_open_wks("png","fnl")               ; open a ps file
  gsn_define_colormap(wks,"BlAqGrYeOrRe")        ; choose colormap

  res                       = True               ; plot mods desired
  res@cnFillOn              = True               ; turn on color fill
  res@cnLinesOn             = False              ; turn off contour lines

;---This resource not needed in V6.1.0
  res@gsnSpreadColors       = True               ; use full range of color map

  plot = gsn_csm_contour_map_ce(wks,spd(:,:),res)     
end

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

本版积分规则

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

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

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