View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

Problems with RSPEC

rohit wrote on Mar 27, 2008

I am trying to convert .dat files into .FITS files. For this, I use rspec (noao:onedpsec). I do not know why, but sometimes I get this error when I run it. The error looks like the following:

onedspec> rspec
Input list of text spectra (tarspec.dat):
Output list of image spectra (tar59): tar60
value expression:
parameter tar60,dclog1 already exists
onedspec>

The file tarspec.dat is indeed converted into tar60.fits and the splot of the file plots well but in its header I have the following:
DCLOG1 = 'REFSPEC1 = iraf308t'
There might be some relation with the HEDIT command. I am not sure. Why is it asking me for value expression?

Doing epar rspec gives me this:
Image Reduction and Analysis Facility
PACKAGE = onedspec
TASK = rspectext

input = tarspec.dat Input list of text spectra
output = tar60 Output list of image spectra
(title = ) Spectrum title
(flux = no) Flux calibrated?
(dtype = interp) Dispersion type
(crval1 = 1.) Coordinate of first pixel
(cdelt1 = 1.) Coordinate interval per pixel
(fd1 = )
(fd2 = )
(mode = ql)

Please help.

Francisco Valdes wrote on Mar 27, 2008

Hi,

The command is an older script that calls hedit. Hedit was modified to add another parameter "addonly". Because the script does not explicitly set this value it is sensitive to your setting. The workaround is to "unlearn hedit" or set "addonly=no". Based on your report the script will be modified for future releases to avoid this problem.

Yours,
Frank Valdes

rohit wrote on Mar 27, 2008

Thanks Frank! It did the job!

Rohit

Last post on Mar 27, 2008