Re: Question about wrf_vector

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue, 24 Mar 2009 14:22:16 -0600 (MDT)

Hi Hui,

By default, the wrf_vector, wrf_contour templates don't draw the
plot. They are intended to be used in conjunction with wrf_map_overlays,
which *does* draw.

However, you can force the draw (and page/frame advance) with:

   res_at_gsnDraw = True
   res_at_gsnFrame = True

It looks like the documentation page for this is incorrect. I'll
double-check it.

--Mary

On Tue, 24 Mar 2009, Hui Du wrote:

> Hello everyone,
>
> I tried to make a simple wrf vector plot, but got blank. The following
> is the code (I copied from ncl webpage and made some small modification
> to replace the nc file). WRFUserARW.ncl was newly downloaded from ncl
> webpage.
> Does any have any idea where the problem is?
> By the way, I am using NCLVersion 5.0.0
> Thanks a lot!
>
> Hui
>
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
> ; load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl"
> load "./WRFUserARW.ncl"
> begin
>
> a = addfile("wrfout.10km.lonlat.nc","r")
>
>
> wks = gsn_open_wks("x11","test")
> res=True
> u10 = wrf_user_getvar(a,"U10",0) ; U component of the wind at 10m
> v10 = wrf_user_getvar(a,"V10",0) ; V component of the wind at 10m
> ; respect to speed use False
>
> vector = wrf_vector(a,wks,u10,v10,res)
>
> end
>
>
>
> _______________________________________________
> 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 Tue Mar 24 2009 - 14:22:16 MDT

This archive was generated by hypermail 2.2.0 : Wed Mar 25 2009 - 15:36:00 MDT