[gradsusr] How to make wind vectors smooth and clear

afwande juliet afwandej965 at gmail.com
Thu Mar 8 19:13:51 EST 2018


thanks
all
the vectors  looks better now

On Fri, Mar 9, 2018 at 1:46 AM, Bill Reilly <bill_reilly at compuserve.com>
wrote:

> Looking at your script you do indeed set cthick to 1, but then two lines
> later you set cthick to 9:
>
> 'set cthick 1 '
> 'set ccols 1'
> 'set cthick 9'
>
> The second time when you set it to 9 it overrides the first, so that's why
> your vectors are so thick.
>
> Bill
>
> --
>
> Bill Reilly
>
> (+34) 686-110-748
> bill at passageweather.comwww.passageweather.com
> bill at brwebworks.comwww.brwebworks.com
>
> On 08/03/2018 21:59, afwande juliet wrote:
>
> Thanks
> I am actually using set csthick 1 , but are not giving me the desired
> results. I tried what was suggested here but could achieve desired
> results...see my script...see also the figure attached that is produced
> with vectors not looking  nice
>
> Examples of the  vectors I wanted to look like are attached in the sample
> paper(Figs 4 and 12)
>
>
>
> On Wed, Mar 7, 2018 at 12:53 PM, Davide Sacchetti <
> davide.sacchetti at arpal.gov.it> wrote:
>
>> about thickness use 'set cthick 1', you area using set cthick 9
>>
>> about smoothing you could use smth9 (smooth with 9 points):
>> 'd smth9(u);smth9(v)'
>>
>> or try hxout stream
>>
>> Cheers
>> Davide
>>
>> On Tue, 2018-03-06 at 14:57 +0300, afwande juliet wrote:
>> > Dear users
>> > I am plotting biases in the Vertically Intergrated moisture flux
>> > between 850-200hPa and I plot winds at 500hPa. The vectors are not
>> > smooth and they are not clear and too thick
>> > How do I make them smoother and thinner but visible
>> >
>> > These are the plot commands am using and attached is the sample plot
>> >
>> > 'reinit'
>> > 'sdfopen /media/anyuola/data_backup1/OBJ4/ERA/interim_OND_dry_rg.nc'
>> > 'open /media/anyuola/external/GRELL/DRY/grell_ond_2010.ctl'
>> > 'open /media/anyuola/external/BML/DRY/bml_OND_MAM_dry_2010_2011.ctl'
>> > 'open /media/anyuola/external/KF/DRY/kf_OND_dry_2010.ctl'
>> > 'open /media/anyuola/external/KFT/DRY/kft_dry_2010_2011.ctl'
>> >
>> > 'set dfile 2'
>> > 'define q2=ave(qvapor,t=1,t=92)'
>> > 'define u2=ave(u,t=1,t=92)'
>> > 'define v2=ave(v,t=1,t=92)'
>> > 'p850 = const(q2,850,-a)'
>> > 'define qu2=vint(p850,q2*u2,300)'
>> > 'define qv2=vint(p850,q2*v2,300)'
>> >
>> >
>> > 'set dfile 1'
>> > 'define q1=ave(q,t=1,t=92)'
>> > 'define u1=ave(u,t=1,t=92)'
>> > 'define v1=ave(v,t=1,t=92)'
>> > 'p850 = const(q1,850,-a)'
>> > 'define qu1=vint(p850,q2*u2,300)'
>> > 'define qv1=vint(p850,q2*v2,300)'
>> > 'define m1 = -hdivg(qu1,qv1)*1000'
>> >
>> > ****differences
>> > 'define flxu=qu2-qu1'
>> > 'define flxv=qv2-qv1'
>> > 'define udiff=u2-u1'
>> > 'define vdiff=v2-v1'
>> >
>> > ****plot
>> > 'set yflip on'
>> > 'set lon 16 75'
>> > 'set lat -18 24'
>> > 'run tppage 8
>> > 1'
>> >
>> > 'set xlint 10'
>> > 'set ylint 5'
>> > 'set mpdset hires'
>> > *'set gxout shaded'
>> > 'set clab on'
>> > 'set grid off'
>> > 'set grads off'
>> > 'set csmooth on'
>> > 'set clopts 1 3 .14'
>> > 'set ccolor 1'
>> > 'set display color white'
>> > 'c'
>> > ***define horizontal Diveregence at this point
>> >
>> > 'set clevs   -2.5 -2 -1.5 -1 -0.5  0 0.5 1 1.5 2 2.5'
>> > 'run red-blue.gs'
>> > *'green_red.gs'
>> > 'set gxout shaded'
>> > 'set csmooth on'
>> > 'd -hdivg(qu2,qv2)*1000'
>> >
>> >
>> > 'cbar'
>> >
>> > 'set gxout vector'
>> > 'set cthick 1 '
>> > 'set ccols 1'
>> > 'set cthick 9'
>> > 'set clopts 1 1 0.1'
>> > 'set lev 500'
>> > *'set t 1 90'
>> > 'set arrscl 0.25'
>> > 'd skip(u,8);skip(v,8)'
>> > *'d mag(u1,v1)'
>> > 'set clab off'
>> > 'draw title  a) GRELL'
>> > 'close 1'
>> >
>> >
>> > _______________________________________________
>> > gradsusr mailing list
>> > gradsusr at gradsusr.org
>> > http://gradsusr.org/mailman/listinfo/gradsusr
>>
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>>
>
>
>
> _______________________________________________
> gradsusr mailing listgradsusr at gradsusr.orghttp://gradsusr.org/mailman/listinfo/gradsusr
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20180309/2778baaf/attachment-0001.html>


More information about the gradsusr mailing list