View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

iminsert in script

douglas brenner wrote on Sep 12, 2009

You would think at least one of these syntax would work. The program "runs" but produces no output; I can use iminsert from the command line with no problem.

procedure preparetofft
begin

#iminsert (input1 = "zeros.fits", input2 = "test.fits[1:125,1:125]", output = "prepared.fits", option = "replace", coordfile = "starts/lltour.txt")

#iminsert "zeros.fits" "test.fits[1:125,1:125]", "prepared.fits", option = "replace", coordfile = "starts/lltour.txt"

#iminsert input1 = "zeros.fits", input2 = "test.fits[1:125,1:125]", output = "prepared.fits", option = "replace", coordfile = "starts/lltour.txt"

#iminsert zeros.fits, test.fits[1:125,1:125], prepared.fits, option = replace, coordfile = starts/lltour.txt
#iminsert zeros.fits test.fits[1:125,1:125] prepared.fits replace starts/lltour.txt

iminsert zeros.fits test.fits[1:125,1:125] prepared.fits replace "starts/lltour.txt"

end

Francisco Valdes wrote on Sep 12, 2009

Hi,

The syntax looks ok, assuming any incorrect line wraps are due to posting it. How are you executing it, that is you are declaring it as a task and then calling it by name?

I have no experience with the task and it may be that it should have more diagnostic output.

I'm sorry I can see anything wrong off-hand.

Frank Valdes

douglas brenner wrote on Sep 12, 2009

I think its failing because I am using Text Edit. I'm trying to switch to xemacs but having trouble installing it.

Last post on Sep 12, 2009