how to handle CALSPEC fits files
galtavi wrote on Aug 29, 2006
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.
Thanks!
Giuseppe
(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.
Thanks!
Giuseppe
hanin wrote on Aug 29, 2006
-sorry, cancelled my post :D -
Last post on Aug 29, 2006