comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » problems with SAVGOL and POLY_SMOOTH
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: problems with SAVGOL and POLY_SMOOTH [message #90897 is a reply to message #90896] Fri, 08 May 2015 07:53 Go to previous messageGo to previous message
Francesca Scipioni is currently offline  Francesca Scipioni
Messages: 6
Registered: August 2014
Junior Member
On Friday, May 8, 2015 at 9:22:02 AM UTC-5, Helder wrote:
> Maybe it's not necessary anymore to comment, but I've tried what David suggested and it works wonderfully...
> If you're getting a zerod array out, then there is something doggy going on (you're using other data?).
>
> If you want, I can send you a copy of the plot, but it looks like a savgol filter to me... The first savgol filter you suggested does not do much... you need to make it broader. But I see absolutely always NON-zero values.
>
> Cheers,
> Helder
>
>
>
> On Friday, May 8, 2015 at 4:08:19 PM UTC+2, Francesca Scipioni wrote:
>> On Friday, May 8, 2015 at 8:43:25 AM UTC-5, Francesca Scipioni wrote:
>>> On Friday, May 8, 2015 at 8:23:43 AM UTC-5, David Fanning wrote:
>>>> Francesca Scipioni writes:
>>>>
>>>> > Any idea about which can be the problem?
>>>>
>>>> I think your filter is too narrow. Try this:
>>>>
>>>> savgolFilter = SAVGOL(8, 8, 0, 4, /double)
>>>>
>>>> This works well with the data you supplied.
>>>>
>>>> Cheers,
>>>>
>>>> David
>>>> --
>>>> David Fanning, Ph.D.
>>>> Fanning Software Consulting, Inc.
>>>> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>>>> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
>>>
>>> Dear David,
>>>
>>> the result is the same, a flat, 0 values, array
>>
>> Using poly_smooth with high degree values the problem i solved!

I didn't tryagain savgol since now poly_smooth is working really good. I verified that the two funcions work in almost the same way using the data taken in the exelis example for savgol.

Thank you for yoyr hellp|
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL crashes when calling DLL from FORTRAN
Next Topic: calculating Standardized Precipitation Index (SPI)

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 08:41:01 PDT 2025

Total time taken to generate the page: 2.48478 seconds