Re: ncl wrf_vector

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Sat Dec 15 2012 - 05:49:48 MST

Hi Bin,

There's a bug in wrf_vector that causes gsnFrame and gsnDraw to be False no matter what you set them to.

I have fixed this bug internally, but meanwhile, to work-around this, you need to call draw and frame yourself:

  vector = wrf_vector(fn1,wks,u10,v10,res)
  draw(vector)
  frame(wks)

--Mary

On Dec 14, 2012, at 6:53 AM, Bin Zhang wrote:

> 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

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sat Dec 15 05:50:01 2012

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