Welcome to iraf.net Friday, May 03 2024 @ 10:52 PM GMT


 Forum Index > Help Desk > Applications New Topic Post Reply
 Cutting emission lines
   
mv1612
 05/31/2006 03:52PM (Read 3253 times)  
+----
Newbie

Status: offline


Registered: 05/31/2006
Posts: 5
Hi,My first post here, if it is elementary I apologize, I just began learning IRAF. I'm working on some very high resolution spectra of a WR star. I need to cut the upper part of an emission line cause I would use the wings only for cross-correlation, to find a rotation curve. I have lots of spectra, so my question would be, can I do something like "cut the emission line from y=2 upwards and join the two wings by a straight line at y=2", for all the spectra simultaneously. The spectra are slightly moving in wavelength from one to the other, but the value y=2 would be good for all of them. Thanks, Virgil.

 
Profile Email
 Quote
fitz
 05/31/2006 03:52PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
If what you want is to simply clip all pixel values above 2 to the value 2, then look at IMREPLACE, e.g.cl> imreplace spec* 2 lower=2.0should do what you want.-Mike

 
Profile Email
 Quote
mv1612
 05/31/2006 03:52PM  
+----
Newbie

Status: offline


Registered: 05/31/2006
Posts: 5
It worked perfectly, thanks very much Mike!
Virgil.

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