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 #66706 is a reply to message #66703] Wed, 03 June 2009 09:11 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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: Sat Oct 11 09:50:14 PDT 2025

Total time taken to generate the page: 0.72119 seconds