Welcome to iraf.net Saturday, May 11 2024 @ 01:12 PM GMT
mv1612 |
05/31/2006 03:52PM (Read 3255 times)
|
|
|
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.
|
|
|
|
fitz |
05/31/2006 03:52PM
|
|
|
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
|
|
|
|
mv1612 |
05/31/2006 03:52PM
|
|
|
Status: offline
Registered: 05/31/2006
Posts: 5
|
It worked perfectly, thanks very much Mike!
Virgil.
|
|
|
|
| |
|
Content generated in: 0.10 seconds |
|