View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

rspectext and fits output

josephmeiring wrote on Apr 26, 2007

When running rspectext with the dispersion type as interpolate, it seems that iraf will only dump out a .imh file and not a fits file. I definitely have imtype=fits going,

onedspec> show imtype
fits
onedspec>

I get the following error and the file out.imh. With other dispersions such as non-linear it works fine

onedspec> rspec in.txt out.fits
Warning: Cannot open image (out.fits)
onedspec> 

any ideas?

thanks,
joe

Mike Fitzpatrick wrote on Apr 26, 2007

A 'cannot open image' could just mean you don't have write permission in the directory or the disk is full. If you reset the imtype on the cl command line be sure to type 'flpr 0' (zero not oh) to restart all the processes in the cache to pick up the change. Otherwise, the value in imtype must match one in the 'imextn' to pick the right kernel, but 'fits' is in the default list so you would have needed to change it. You can do a new MKIRAF is some place like /tmp to rule out anything you might have done in a login.cl/loginuser.cl file.

Anyway, I tried it here and was able to run RSPEC to create a fits file.

-Mike

josephmeiring wrote on Apr 26, 2007

Much appreciated, that seems to have done it.

Cheers

Last post on Apr 26, 2007