View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

apall re-extracting the same thing

eteq wrote on Jun 28, 2007

I'm using the apall task to extract a series of spectra, and I can't seem to find a way to tell it to do exactly what it did the last time it was run. I want to simply output the exact same thing, but in a different format (e.g. I want both strip and onedspec files.). If I set references to "last" and turn off the interactive option for the second one, I get very different spectra (I think because its not fitting the trace function if I don't interactively tell it to). Anyone know of how this can be done?

Francisco Valdes wrote on Jun 28, 2007

You should do the extraction on one, or go through the steps up to extraction, and save the aperture definitions. Normally this is automatic and it is saved with the same name as the image (without the .fits).

To apply the same aperture definitions on another image set the "reference" parameter to the name of the image. Be sure to turn off all the steps except the extraction so that it doesn't change the definitions; e.g. you don't want to retrace.

This should apply the exact same aperture definitions (centering, trace, aperture ids, etc.)

Yours,
Frank Valdes

Chun Ly wrote on Jun 28, 2007

valdes

To apply the same aperture definitions on another image set the "reference" parameter to the name of the image. Be sure to turn off all the steps except the extraction so that it doesn't change the definitions; e.g. you don't want to retrace.


I'm also having the same problem. I tried this and it didn't work. Fuzzing around I also set the profiles parameter the same as references and that worked. You have to set both and also turn OFF apall.trace, apall.fittrace and the other parameters except for apall.extract, of course.

Last post on Jun 28, 2007