Welcome to iraf.net Wednesday, November 22 2017 @ 11:57 PM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 imcopy problems
   
arpita.manju
 11/05/2017 06:53PM (Read 728 times)  
+----
Newbie

Status: offline


Registered: 11/01/2017
Posts: 3
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!!!!

 
Profile Email
 Quote
fitz
 11/05/2017 08:46PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 3988
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?

 
Profile Email
 Quote
arpita.manju
 11/06/2017 06:06AM  
+----
Newbie

Status: offline


Registered: 11/01/2017
Posts: 3
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!

 
Profile Email
 Quote
arpita.manju
 11/06/2017 06:25AM  
+----
Newbie

Status: offline


Registered: 11/01/2017
Posts: 3
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!

 
Profile Email
 Quote
fitz
 11/10/2017 04:43PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 3988

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?

 
Profile Email
 Quote
   
Content generated in: 0.11 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login