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

Home » Public Forums » archive » filtering problem
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: filtering problem [message #22624 is a reply to message #22539] Tue, 21 November 2000 00:00 Go to previous message
Dave Brennan is currently offline  Dave Brennan
Messages: 28
Registered: December 1998
Junior Member
Once again thanks for the help.

However, life is not quite as simple as I imagined. Previously I said :

> In detail: 'the algorithm should correct the pixel value by a
> multiplicative factor found by dividing the global mean by the window
> mean'
> A further problem is I want the ability to set a threshold where data
> below the threshold are not included in the statistics and not corrected
> by the algorithm.

I have later found that this is not entirely correct.

Although any value below the thershold should not be included in the
statistics, pixels below the threshold should be corrected by the algorithm.

Therefore is it possible to change the code:

pro thresh, a, n, t
m = a ge t
wh = where(m,cnt)
if cnt eq 0 then return
a[wh] = a[wh] * mean(a[wh]) * (smooth(float(m),n,/EDGE) / $
(smooth(a*m,n,/EDGE)+1.e-30))[wh]
end

to allow this.

After scratching my head for a while I can't think of a simple solution without
going back to my clunky method where I manually scan through the data and
threshold the window each time. There must be a better way!!

Any help would be greatly appreciated!!

Cheers

Dave Brennan
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Spline Fitting and FWHM
Next Topic: Getting BIG structures into IDL via CALL_EXTERNAL

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

Current Time: Wed Oct 08 19:33:00 PDT 2025

Total time taken to generate the page: 0.00442 seconds