[ncl-talk] hodograph

BasitAli Khan BasitAli.Khan at kaust.edu.sa
Wed Jul 15 08:50:43 MDT 2015


Hi there,

I am trying to plot hodograph using hodograph.ncl and hodo_cartesian.ncl with modified cartesian scale for wind magnitude. The default one is 0  10 20 while i need something like 0 4 8 12 16 20 & 24. I've been successful in making some changes like increased number of circles from 3 to 6 and plotted wind mag on circles but unable to change cartesian scale. It is still showing the same 0 10 20. Please see the attached figure.

I would appreciate if Dennis Shea or our other NCL experts could advise as where to make changes in hodo_cartesian.ncl or hodograph.ncl script to get what i want.

The main scrip is copied below:

load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
load "/data/ncl_work/spl_plots/02_hodograph/hodograph.ncl"
load "./hodo_cartesian.ncl"
begin

ws   = (/1.,2., 3., 5., 9., 13., 14., 14.,17.,17.,17.,18.,19.,20.,21.,24./)
wd   = (/180.,185.,190.,200., 230., 245.,260., 265.,270.,290., 300.,305.,330.,340.,350.,360./)

res  = True
res at tiMainString = "HODO_GRAPH: CARTESIAN"
res at gsnDraw  = False
res at gsnFrame = False
;res at hodo_labelCircle = True

wks = gsn_open_wks ("png","hodogaph")

hodoPlt = hodograph(wks, ws,wd, res)
hcart   = True
hcart at hodo_axisColor     = 28

caxis = cartesian_axis(wks,hodoPlt,hcart)

draw(hodoPlt)
frame(wks)

end



Thanks and best regards,

Basit

________________________________

This message and its contents including attachments are intended solely for the original recipient. If you are not the intended recipient or have received this message in error, please notify me immediately and delete this message from your computer system. Any unauthorized use or distribution is prohibited. Please consider the environment before printing this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150715/0fda587b/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hodogaph.png
Type: image/png
Size: 78896 bytes
Desc: hodogaph.png
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150715/0fda587b/attachment.png 


More information about the ncl-talk mailing list