Welcome to iraf.net Friday, April 19 2024 @ 02:42 PM GMT


 Forum Index > Help Desk > Applications New Topic Post Reply
 dispcor
   
adnan
 09/02/2014 11:02AM (Read 1245 times)  
+----
Newbie
working

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!

 
Profile Email
 Quote
fitz
 09/02/2014 04:19PM  
AAAAA
Admin

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.

 
Profile Email
 Quote
adnan
 09/05/2014 02:53PM  
+----
Newbie

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.

 
Profile Email
 Quote
adnan
 09/05/2014 03:12PM  
+----
Newbie

Status: offline


Registered: 08/27/2014
Posts: 6
Also, I don't think there are any permission problems as I'm the owner.

 
Profile Email
 Quote
fitz
 09/05/2014 03:33PM  
AAAAA
Admin

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.

 
Profile Email
 Quote
fitz
 09/11/2014 04:19PM  
AAAAA
Admin

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.

 
Profile Email
 Quote
adnan
 09/15/2014 04:00PM  
+----
Newbie

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! Smile

 
Profile Email
 Quote
   
Content generated in: 0.26 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