View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

msccmd and imcombine

Pat Hartigan wrote on Apr 20, 2011

Hi,

Does msccmd work with imcombine? I tried

msccmd "imcombine $input tmp combine=median" input="sky70,sky71,sky72"

but it tried to median filter sky70[1],sky70[2] etc. instead of taking
sky70[1],sky71[1],sky72[1] and put them into tmp[1].

I can do this in a less elegant way by doing the individual extensions, but I
thought that median-filtering mef files must be common enough to have
a better way to do it.

Thanks

Pat Hartigan

Francisco Valdes wrote on Apr 20, 2011

Hi Pat,

What you want to do is very easy with newfirm.combine. This task was designed with the concepts of multiple extensions. The default parameters will combine each matching extension in an MEF into an output MEF with the same set of extensions. This is what you are wanting to do. I realize that the full description of combine can be daunting because it has so many ways to do things but that is what allows it to address the various data reduction applications.

Msccmd and imcombine could be used to do what you want but it was not really intended for this use.

Regards,
Frank

Sorry for the slow reply.

Last post on Apr 20, 2011