dfanning widbarb.pro [message #66269] |
Fri, 24 April 2009 12:11 |
natha
Messages: 482 Registered: October 2007
|
Senior Member |
|
|
Hi All,
I'm using the windbarb.pro program from david's catalyst library and
I'm trying to draw some wind barbs on a map. I realise that the
windbarbs are not positioned in a grid although my x and y params that
defines the wind locations are defined like this:
x=REBIN(FINDGEN(48)*10.+5,48,48,/SAMPLE)
y=REBIN(TRANSPOSE(FINDGEN(48)*10.+5),48,48,/SAMPLE)
The aspect ratio of my window is 1 and the clip_dimensions is
[0,0,480,480]. I call the routine like this:
wspeed=RANDOMU(-3,[48,48])*100+5.0
direction=FINDGEN(48,48)*360/(48^2.-1)
Windbarb, x, y, wspeed, wdirection, Aspect=1, Clip=
[0.,0.,480.,480.], Length=4
I thought I'll obtain the windbarbs in a grid.
I mean, if I draw a grid, each cell with dimensions [10,10] I supose
each barb will have the origin in a center of each grid cell but this
is not the result.
Please can anybody help me !
Thanks,
David
|
|
|