Welcome to iraf.net Wednesday, May 01 2024 @ 01:01 PM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 Total number of events in the plots
   
cosmologist
 12/07/2010 08:46PM (Read 2519 times)  
++++-
Regular Member

Status: offline


Registered: 03/30/2009
Posts: 117
Is there a way to have IRAF tell you the total number of events in the plots (can IRAF tell you how many bins it put the data into)?Is it in the header? How can I find out?
Thanks

 
Profile Email
 Quote
fitz
 12/07/2010 08:46PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
A plot from what what task? When you say 'event' do you mean something like an X-ray event? Do you mean a 'bin' as in histogram? The answer will depend highly on the task being used, there is no general rule.

 
Profile Email
 Quote
cosmologist
 12/07/2010 08:46PM  
++++-
Regular Member

Status: offline


Registered: 03/30/2009
Posts: 117
A plot of a Flat image for example, after using flatcombine and getting the output Flat image.I am converting the result from a fits file to another kind and the other image seems to be more detailed that the original fits one, so I thought maybe if I check the number of events in each file I can understand the difference between the 2 plots. I can attach them here if that helps.Thanks

 
Profile Email
 Quote
fitz
 12/07/2010 08:46PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
And so how are you generating the 'plot'? Is it a line/column plot through the image, a histogram of the 2-D image, the output of some other task....etc.

 
Profile Email
 Quote
cosmologist
 12/07/2010 08:46PM  
++++-
Regular Member

Status: offline


Registered: 03/30/2009
Posts: 117
Oh, yea sorry. It is a histogram of the 2-D image. Created using splot.

 
Profile Email
 Quote
cosmologist
 12/07/2010 08:46PM  
++++-
Regular Member

Status: offline


Registered: 03/30/2009
Posts: 117
Does the question make more sense now?

 
Profile Email
 Quote
fitz
 12/07/2010 08:46PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
It makes sense, I'm away at a meeting so replies are slow.The histogram in SPLOT is just a graphics line style, it isn't a real histogram. The count of events in that case is just the pixel value listing which you can get with a task like LISTPIXELS or WTEXTIMAGE. If you want a real histogram, see the IMHISTOGRAM or PHISTOGRAM task help pages.

 
Profile Email
 Quote
cosmologist
 12/07/2010 08:46PM  
++++-
Regular Member

Status: offline


Registered: 03/30/2009
Posts: 117
Thanks a lot.
That helped.

 
Profile Email
 Quote
   
Content generated in: 0.24 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