[gradsusr] smoothed shadings in GRADS

Jeff Duda jeffduda319 at gmail.com
Thu Dec 28 01:18:09 EST 2017


I'm not sure what to say then. Perhaps the smth9() function only works on
horizontal fields (that's all I've ever used it on)?

Perhaps something very clever will be needed. Or you might have to perform
the smoothing in an alternate data set outside of grads. Or you may be out
of luck on this option. I'm not sure. Hopefully someone else can chime in
with better advice.

Good luck!

Jeff

On Wed, Dec 27, 2017 at 11:03 PM, Lyndon Mark Olaguera <
olagueralyndonmark429 at gmail.com> wrote:

> Dear Sir Jeff,
>
> I also tried your suggestion but the result does not change.
>
> *'d smth9(smth9(smth9(smth9(smth9(smth9(smth9(smth9(-c*100))))))))'*
>
> I am only shading the significant areas via the maskout() function. Maybe,
> this is the reason why Im not getting a smooth shading?
>
> Sincerely,
>
> *Lyndon Mark P. Olaguera*
> PhD Student
> Laboratory of Climatology
> Department of Geography
> Faculty of Urban Environmental Science
> Minami-Osawa Campus
> Tokyo Metropolitan University
> Hachioji Tokyo, Japan
>
>
> On Thu, Dec 28, 2017 at 2:44 PM, Jeff Duda <jeffduda319 at gmail.com> wrote:
>
>> use the smth9() function. Nest several iterations of it to increase the
>> smoothing level.
>>
>> Jeff Duda
>>
>> On Wed, Dec 27, 2017 at 9:41 PM, Lyndon Mark Olaguera <
>> olagueralyndonmark429 at gmail.com> wrote:
>>
>>> Hi Bill,
>>>
>>> I tried this but the result is still the same.
>>>
>>> Sincerely,
>>>
>>> *Lyndon Mark P. Olaguera*
>>> PhD Student
>>> Laboratory of Climatology
>>> Department of Geography
>>> Faculty of Urban Environmental Science
>>> Minami-Osawa Campus
>>> Tokyo Metropolitan University
>>> Hachioji Tokyo, Japan
>>>
>>>
>>> On Wed, Dec 27, 2017 at 9:16 PM, Bill Reilly <bill_reilly at compuserve.com
>>> > wrote:
>>>
>>>> Before displaying the shading use the following:
>>>>
>>>> 'set csmooth on'
>>>>
>>>> --
>>>>
>>>> Bill Reilly
>>>> (+34) 686-110-748 <+34%20686%2011%2007%2048>
>>>> bill at passageweather.comwww.passageweather.com
>>>> bill at brwebworks.comwww.brwebworks.com
>>>>
>>>> On 27/12/2017 05:48, Lyndon Mark Olaguera wrote:
>>>>
>>>> Dear GrADS experts,
>>>>
>>>> I am trying to plot a difference plot.In particular, a height-longitude
>>>> cross section attached in this email. I am shading only the significant
>>>> areas.
>>>>
>>>> Is there a way to smoothen the shading in the plot?Currently, the
>>>> shading appears like "blocks".
>>>> Here's a part of my script.
>>>>
>>>> 'define sig=maskout(ttest1,ttest1-3.055)'
>>>> 'set lon 40 180'
>>>> 'define b=maskout(num,sig)'
>>>> 'set lev 1000 100'
>>>> 'set lon 40 180'
>>>> 'define c=ave(b,lat=0,lat=18)'
>>>>
>>>> 'set display color white'
>>>> 'c'
>>>> 'set parea 1.5 10.5 1.5 8'
>>>> 'set lon 40 180'
>>>> 'set grads off'
>>>> 'set grid off'
>>>> 'set xlopts 1 5 0.2'
>>>> 'set ylopts 1 5 0.2'
>>>> 'set xlint 20'
>>>> 'set font 1'
>>>>
>>>> 'set gxout shaded'
>>>> 'set lev 1000 100'
>>>> 'set y 1'
>>>> 'set zlog on'
>>>> *'color -8 8 1 -gxout shaded -kind gray->gray'*
>>>> 'd -c*100'
>>>>
>>>> I'll appreciate any help.
>>>>
>>>> Sincerely,
>>>>
>>>>
>>>> *Lyndon Mark P. Olaguera*
>>>> PhD Student
>>>> Laboratory of Climatology
>>>> Department of Geography
>>>> Faculty of Urban Environmental Science
>>>> Minami-Osawa Campus
>>>> Tokyo Metropolitan University
>>>> Hachioji Tokyo, Japan
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> gradsusr mailing listgradsusr at gradsusr.orghttp://gradsusr.org/mailman/listinfo/gradsusr
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> 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
>>>
>>>
>>
>>
>> --
>> Jeff Duda
>> Post-doctoral research fellow
>> University of Oklahoma School of Meteorology
>>
>> _______________________________________________
>> 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
>
>


-- 
Jeff Duda
Post-doctoral research fellow
University of Oklahoma School of Meteorology
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20171227/088c03e9/attachment.html 


More information about the gradsusr mailing list