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

Home » Public Forums » archive » Re: bad column in image
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: bad column in image [message #66816 is a reply to message #66706] Fri, 05 June 2009 12:22 Go to previous message
Amanda is currently offline  Amanda
Messages: 12
Registered: August 2006
Junior Member
Ok, the interpolation sounds like a much better idea, but is
"interpol" only for vectors? I tried using it with mine and only got a
synthax error. I know there's also an "interpolation" function, but I
have no idea how to use it.

Amanda

On Jun 3, 5:11 pm, David Fanning <n...@dfanning.com> wrote:
> Amanda writes:
>> I was just using the where function, like this: arr(where(arr[1440,*]
>> GT 1000))=3Dmean(arr) but I don't know if that's how I should be doing
>> it.
>
> No, that's not the way you should be doing it. :-)
>
> I would do it like this:
>
>    badcol = arr[1440,*]
>    indices = Where(badcol GT 1000, count)
>    IF count GT 0 THEN badcol[indices] = Mean(arr)
>    arr[1440,*] = badcol
>
> Using the mean of the array is sketchy. Perhaps some
> kind of interpolation method would be better:
>
>   http://www.dfanning.com/math_tips/easyinterp.html
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: heap memory used: 18446743890746993974 :S ?????????
Next Topic: IDLdoc 3.2 released

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

Current Time: Sun Oct 12 16:32:30 PDT 2025

Total time taken to generate the page: 0.00241 seconds