Skipping barbs in GRADS

1T(T) Leandro Machado leandro at SMM.MIL.BR
Mon Sep 21 10:53:15 EDT 2009


Dear Jhon,

You is using differents mask values for u and v components.

Try this way:
'set gxout barb'
'set clevs lev(1) lev(2) ... lev(n)'
'set ccols color(1) color(2 ) ... color(n) color(n+1)'
'd skip(u,2,2);skip(v,2,2);mag(u,v)'

Good luck!

Leandro

On Mon, 21 Sep 2009 17:26:01 +0300, Ioannis Koletsis wrote
> Dear all,
>
> I plot wind barbs using the maskout function. Each color corresponds to a different wind intensity (barbs), for example:
>
> 'set ccolor 9'
> 'd maskout(u*2,mag(u,v)-0;maskout(v*2,1.25-mag(u,v))'
>
> 'set ccolor 14'
> 'd maskout(u*2,mag(u,v)-1.26;maskout(v*2,3.75-mag(u,v))'
>
> 'set ccolor 4'
> 'd maskout(u*2,mag(u,v)-3.76;maskout(v*2,6.25-mag(u,v))'
> e.t.c.
>
> I would like to skip barbs in both x and y direction
>
> I tried to use the skip function,
>
> 'd skip(maskout(u*2,mag(u,v)-3.76;maskout(v*2,6.25-mag(u,v)),2,2)
>
> but it didn't work!
>
> Would somebody please help me?
> Any idea?
>
> Thanks in advance
>
> John
>
>
> -----------------------------------------------------------
> Ioannis Koletsis
> National Observatory of Athens
> Institute for Environmental Research
> Lofos Koufou
> 15236-Penteli
> Athens-Greece
> Tel: (+30) 210 8109140
> e-mail: koletsis at meteo.noa.gr
>            ikoletsis at gmail.com
> -----------------------------------------------------------

1T(T) Leandro Machado
Ajudante da Seção de Modelagem Atmosférica
Centro de Hidrografia da Marinha
R Barão de Jaceguai, s/n
Ponta da Armação - Niterói
CEP 24.048-900
tel: (21) 2189-3282/3283 fax: (21) 2189-3295

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20090921/b8c5a7e7/attachment.html 


More information about the gradsusr mailing list