adnan |
09/02/2014 11:02AM (Read 1248 times)
|
|
|
Status: offline
Registered: 08/27/2014
Posts: 6
|
Hi,
I'm having problem using the 'dispcor' function on iraf.
I have installed the latest ximtool and iraf version on a 64-bit Linux OS.
When I type 'dispcor' in an xgterm window, it asks me give the Input and Output spectra list. When I enter both of them, it says 'WARNING: Cannot open image (xxxx.fits)'
Can anybody please help me with this?
Do I need to install any other softwares before using this?
It's a bit urgent. Thanks!
|
|
|
|
fitz |
09/02/2014 04:19PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
The 'cannot open image' might refer to a permissions problem (e.g. can you read the input image? Do you have permission to write an output image in the current directory? Does the output filename already exist?). It might also mean the FITS file is somehow corrupted or otherwise unreadable, e.g. is this an image and not a binary table? Do other tasks like IMHEAD or IMPLOT work on the file?
If you're still having problems please upload the image to the anonftp at ftp://iraf.noao.edu/pub and I'll have a look.
|
|
|
|
adnan |
09/05/2014 02:53PM
|
|
|
Status: offline
Registered: 08/27/2014
Posts: 6
|
Hi,
Thanks for your reply.
I tried the 'implot' function and it opens another window which is completely black and reads 'Error opening image 'xxxx.fits' at the bottom.
Also, can you please tell me how to refer to the image file when I use 'dispcor' or 'implot' (Do i directly type the image file's name (like - image.fits) or mention the path like - /Desktop/folder/image.fits)
Thank you for your help.
|
|
|
|
adnan |
09/05/2014 03:12PM
|
|
|
Status: offline
Registered: 08/27/2014
Posts: 6
|
Also, I don't think there are any permission problems as I'm the owner.
|
|
|
|
fitz |
09/05/2014 03:33PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
You can refer to the image as simply "image.fits" if it is in the current directory, otherwise you need to specify a path.
If the command "cl\$this->_split2($m[0]) imhead image.fits long+" works then it may be something like a corrupted/truncated data record in the FITS file, or a FITS file that is not actually an image. It would help if you could upload the file to the anonftp at ftp://iraf.noao.edu/pub so I could have a look at it.
|
|
|
|
fitz |
09/11/2014 04:19PM
|
|
|
Status: offline
Registered: 09/30/2005
Posts: 4040
|
Thanks for the uploaded files. There are two issues: the first is that the PARAM0, PARAM61, PARAM62 and PARAM63 keywords contain a non-ascii character for the degree symbol, this is a FITS error but isn't causing the IRAF problem. The second issue is the fatal once causing the task to crash, specifically the OBSERVER keyword contains a name with an apostrophe in it which is invalidating the quoted string. The input image has the same keyword, however it appears that image works and in fact both/neither images work depending on the platform.
For the input image you can modify the OBSERVER keyword with a command such as
cl\$this->_split2($m[0]) hedit NGC1850.fits OBSERVER "Randa Asad"
to remove the apostrophe.
|
|
|
|
adnan |
09/15/2014 04:00PM
|
|
|
Status: offline
Registered: 08/27/2014
Posts: 6
|
Thank you for your reply.
The problem got sorted out!
Your fast and concise replies have helped me a lot.
Once again, thank you!
|
|
|
|