View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

Crop N pixels from extracted echelle spectra

Ivan Ramirez wrote on Jul 21, 2008

Hello,

I have an extrated echelle spectrum of ~60 orders, 2048 pixels each. The last ~100 pixels of all orders are useless and I'd like to remove them; i.e. I'd like to create, from the original spectrum, another echelle spectrum of ~60 orders but ~1948 pixels each. Any ideas?

Thanks,

-Ivan

Francisco Valdes wrote on Jul 21, 2008

I assume the extract echelle orders are in "multispec" format (typically the file name has a .ms or .ec). This format is easy to trim with an image section


imcopy foo.ec[1:1948,*] newfoo.ec


If the format has the 3rd dimension you would add an extra ,* in the section. Naturally you might be concerned that this would invalidate something about the format. In this case it is perfectly fine.

I hope this addresses what you want to do.

Yours,
Frank Valdes

Ivan Ramirez wrote on Jul 21, 2008

That worked. Thanks Frank!

Last post on Jul 21, 2008