vector plot problem

From: Matt Fearon (matthew.fearon@XXXXXX)
Date: Fri Aug 03 2001 - 12:42:02 MDT


Dear NCL users:

I encountered a weird scaling problem with Y axis when trying to
do a vector (longitude height) plot. The trouble seems to be linked
to the vfYarray, as when I use this resource to label my Y axis,
a large scaling of the Y axis occurs and my plotted wind vectors
are squished down incorrectly. I attached my script below. Has
anyone had a Y axis scaling problem when doing a vector plot
using vfYArray ?

Thank you,
Matt

load "~/programs/map/coamps/Ncl/rd.coamps.fluxvars.10.ncl"

begin

clevels!0="Height"
clevels@units="m"

clat!0="Lat"
clat!1="Lon"
clat@units="degrees_north"
clon!0="Lat"
clon!1="Lon"
clon@units="degrees_east"

cvvvv!0="Time"
cvvvv!1="Height"
cvvvv&Height=clevels
cvvvv!2="Lat"
cvvvv&Lat=clat(:,100)
cvvvv!3="Lon"
cvvvv@units="m/s"

cwwww=cwwww*71. ; exaggeration factor applied to w
cwwww!0="Time"
cwwww!1="Height"
cwwww&Height=clevels
cwwww!2="Lat"
cwwww&Lat=clat(:,100)
cwwww!3="Lon"
cwwww@units="m/s"

wks_type = "x11"
wks_type@wkOrientation = "portrait"

wks = gsn_open_wks (wks_type, "Meta/plan_xlon")
gsn_define_colormap (wks,"WhViBlGrYeOrReWh")

res = True
res@gsnMaximize = True
res@gsnAddCyclic = False
res@tfDoNDCOverlay = False

res@vfXArray = clat(30:190:10,100)
res@vfYArray = clevels
res@vcRefLengthF = 0.06
;res@vcRefMagnitudeF = 20.
res@vcRefAnnoOn = False

vplot0 = gsn_csm_vector
(wks,cvvvv(4,:,30:190:10,100),cwwww(4,:,30:190:10,100),r
es)

end



This archive was generated by hypermail 2b29 : Tue Feb 19 2002 - 09:06:06 MST