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

Home » Public Forums » archive » Re: RMS of background
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: RMS of background [message #50465] Fri, 29 September 2006 11:08
adisn123 is currently offline  adisn123
Messages: 44
Registered: July 2006
Member
Thanks to all.
Re: RMS of background [message #50466 is a reply to message #50465] Fri, 29 September 2006 10:41 Go to previous message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
> square = image ^ 2
Re: RMS of background [message #50467 is a reply to message #50466] Fri, 29 September 2006 10:40 Go to previous message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
adisn123@yahoo.com wrote:
> I have a sky background image and want to find what rms of the
> background is.
> Do I want to
> 1) square all pixel values of each point in the 2d image
> 2) add them and divide by the total number of points
> 3) take a square root of that?
>

you should read the help file about arrays...

square = image^2
total = total(square)
nbPixels = n_elements(image)
sqrt = sqrt(float(total) / nbPixels)

Jean H.
Re: RMS of background [message #50469 is a reply to message #50467] Fri, 29 September 2006 10:42 Go to previous message
greg michael is currently offline  greg michael
Messages: 163
Registered: January 2006
Senior Member
How do you know you want to find the rms? Otherwise, sounds fine to me.

adisn123@yahoo.com wrote:
> I have a sky background image and want to find what rms of the
> background is.
> Do I want to
> 1) square all pixel values of each point in the 2d image
> 2) add them and divide by the total number of points
> 3) take a square root of that?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: RMS of background
Next Topic: Segmentation fault on Mac Intel Core 2 Duo

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

Current Time: Wed Oct 08 15:13:53 PDT 2025

Total time taken to generate the page: 0.00532 seconds