View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

imcopy problems

arpita.manju wrote on Nov 05, 2017


input = file_name.fits[535:546,456:432] Input images

output = file_name.fits output images or directory

(verbose = yes) Print operations performed?

(mode = ql)

these are the instructions that I've given, it doesn't show anything after this!

And I don't know how to proceed. please help!!!!

Mike Fitzpatrick wrote on Nov 05, 2017


With the verbose flag set, the only thing you should see is a line like:

old_file.fits -> new_file.fits

or an error message. What you posted looks like a parameter editor screen (i.e. 'epar imcopy'), so to execute the task you would type ":go" to run with the current parameters. From the commandline it would be run as something like

cl> imcopy file_name.fits[535:546,456:432] file_name.fits verbose=yes

where I'm assuming the 'file_name.fits' is just used as an example name. It isn't clear though whether you are trying to overwrite the input image entirely, what happens when you use a different output name in a test?

arpita.manju wrote on Nov 06, 2017


I was trying to cut the edges of the frame and so I gave the same file name in order to modify and cut the file!

arpita.manju wrote on Nov 06, 2017


After I fill in the imcopy task where do I type ":go" because when I press enter, nothing executes. And what should i fill in the "output images or directory"?, and it said "error: cannot open the image" when i gave the command - "imcopy file_name.fits[ ] file_name.fits verbose =yes". Please help!

Mike Fitzpatrick wrote on Nov 10, 2017



The ":go" is the command you would use to execute the task from the parameter editor, e.g.

cl> epar imcopy

.....change parameters

..... type ":go" to execute the task

Otherwise, the command can be run by setting the parameters on the commandline, e.g.

cl> imcopy foo.fits[535:546,456:432] foo.fits

will extract the section "[535:546,456:432]" from 'foo.fits' to a temporary image and then overwrite the original file. Unless your file is literally named "file_name.fits" the 'cannot open image' message may be a permissions problem, e.g. do you own the image or is it in another user's directory?

Last post on Nov 10, 2017