gsn_csm_vector Vs gsn_vector

From: Sabeerali(sebi) <sabeerl_at_nyahnyahspammersnyahnyah>
Date: Wed May 25 2011 - 23:33:37 MDT

Dear NCL users,

I used the function "gsn_vector" to plot the jjas mean Hadley circulation
and I got the correct plot. But to have more control over the plot ( I have
to get coordinate in X and Y), i used the "gsn_csm_vector" function. But in
this case I getting a different plot. Why this difference is coming and what
is the solution? In the following script I changed only gsn_vector to
gsn_csm_vector.Any help would be greatly appreciated.

I used the ncep v wind and omega. For scaling I multiplied the omega with
-100

Thanks in advance
sabeer

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/csm/contributed.ncl"
begin
wf=addfile("mon.omega.nc","r")
vf=addfile("mon.vwnd.nc","r")

date=ut_calendar((wf->time),-5)
month=date(:,1)
jjas_indx=ind(month.eq.06.or.month.eq.07.or.month.eq.08.or.month.eq.09)

w=short2flt(wf->omega(jjas_indx,:,::-1,{68:80}))
v=short2flt(vf->vwnd(jjas_indx,:,::-1,{68:80}))

jjas_w=dim_avg_n_Wrap(w(:,:,{-30:30},:),0)
jjas_v=dim_avg_n_Wrap(v(:,:,{-30:30},:),0)

jjas_w_lonavg=dim_avg_n_Wrap(jjas_w,2)
jjas_v_lonavg=dim_avg_n_Wrap(jjas_v,2)

ws=jjas_w_lonavg*-100
copy_VarCoords(jjas_w_lonavg,ws)

wks=gsn_open_wks("x11","hadley")
gsn_define_colormap(wks,"gui_default")
res = True
res@tiMainString = ""
res@gsnSpreadColors = True
res@vcRefMagnitudeF = 7.0
res@vcRefLengthF = 0.045
res@vcMonoLineArrowColor = False
res@vcGlyphStyle = "CurlyVector"

;;plot = gsn_vector(wks,jjas_v_lonavg,ws,res)

 plot=gsn_csm_vector(wks,jjas_v_lonavg,ws,res)

end

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed May 25 23:33:50 2011

This archive was generated by hypermail 2.1.8 : Wed Jun 01 2011 - 12:41:15 MDT