ncl wrf_vector

From: Bin Zhang <zhangbinrc_at_nyahnyahspammersnyahnyah>
Date: Fri Dec 14 2012 - 06:53:55 MST

Hi,

I am using NCL to plot wind vector. Something is wrong with my NCL script. Could you please help me with this? Thanks!

Below is my script:

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/wrf/WRFUserARW.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRF_contributed.ncl"

begin
  direc="/net/9/zb/wrfout/haze_200608/ade_lin_9km/"
  fn1=addfile(direc+"wrfout_d02_2006-08-01_00:00:00_normal.nc","r") ;filename
  u10 = wrf_user_getvar(fn1,"U10",0) ; U component of the wind at 10m
  v10 = wrf_user_getvar(fn1,"V10",0) ; V component of the wind at 10m
  wks=gsn_open_wks("x11","wind_10m")

  res = True
  res@gsnDraw = True ; Forces the plot to be drawn
  res@gsnFrame = True ; Frame advance
  vector = wrf_vector(fn1,wks,u10,v10,res)

end

Bin Zhang, Ph.D candidate
Center for Earth System Science
Tsinghua University, Beijing 100084, China
Email: zhangbin06@mails.tsinghua.edu.cn

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Dec 14 06:54:01 2012

This archive was generated by hypermail 2.1.8 : Fri Dec 21 2012 - 10:43:23 MST