Posted: Tue Aug 29, 2006 8:54 am Post subject: how to handle CALSPEC fits files
Dear IRAF expert, I have a problem handling the CALSPEC spectra
(http://www.stsci.edu/hst/observatory/cdbs/calspec.html) with IRAF.
"Files are in machine independent binary FITS table format".
It's the first time I use them.
SPLOT does not plot them (ERROR: MWCS: dimension mismatch (mw_open))
In order to plot them with SPLOT I make the following: I convert the original fits file into an ASCII table with TDUMP
(tdump file.fits columns="WAVELENGTH, FLUX" datafile="table.dat")
then I go back to fits with RSPECTEXT, with
(dtype = nonlinear) Dispersion type
This option generates a huge header (I had to modify the login.cl with this line:
set min_lenuserarea = 1000000) in order to avoid the error:"Warning: Out of space in image header".
The problem is that if I want to use SARITH or other tasks with this spectra I get the error : "Warning: MWCS: out of storage for FITS-WCS cards".
I think the problem is the huge header, I was thinking to resample the spectra (the ASCII table) with a costant step before converting them to fits with rspectext
in order to have a "normal header".
Maybe there is a simple way to handle these spectra. Do you have any suggestion?
I also had to increase cmbuflen in the login.cl to print a postscript image.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum