Welcome to iraf.net Saturday, April 27 2024 @ 01:08 AM GMT


 Forum Index > Help Desk > Applications New Topic Post Reply
 imstat algorithm: sigma clipping
   
KevinVolk
 12/19/2014 06:37PM (Read 1825 times)  
+----
Newbie

Status: offline


Registered: 12/19/2014
Posts: 1
I routinely use imstat to get statistics on images. One of the more useful aspects of imstat is the ability to do the sigma clipping and remove deviant pixels. I use it a lot to look at detector characterization data and get the mean/standard deviation of the main set of pixels with the hot/bad pixels removed. However, I am now forced to re-create the imstat results in Python since it has been decreed that we must use Python. I have tried a few Python routines that are supposed to do sigma-clipping of images, but they give much different results than imstat does (and I think they are simply wrong given the way histograms of the pixel values look). I wish to duplicate imstat exactly, or at least very closely, because I have a long history of use of IRAF and do not want to have to adapt to another algorithm. And, I want to keep using IRAF myself whether or not the powers that be prefer Python.

Is there some documentation somewhere of the exact algorithms used in imstat? Or can I get the source code to try to adapt it to Python to get the same output?


 
Profile Email
 Quote
fitz
 12/19/2014 06:47PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
The values computed by IMSTAT are described in the task help page, although it's probably been a while since we checked that the code hasn't been updated slightly since these were first written. The source itself is in the file iraf$pkg/images/imutil/src/t_imstat.x and should be fairly straight forward to translate but be sure to note which values in the IRAF code explicitly use double precision.

 
Profile Email
 Quote
   
Content generated in: 0.12 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login