List a binary FITS or IRAF Spectrum in ASCII with rvsao. listspec

listspec prints pixel information for a spectrum image, selecting what to print and the order to print it from the columns parameter. Possible columns are:
n Aperture number of the spectrum (starting at one)
p Pixel number (starting at one)
w Wavelength of center of the pixel computed using the world coordinate system defined in the image header
f Flux in this pixel in counts or photons, if photometrically calibrated.
d change in wavelength across this pixel, useful for nonlinear wavelength dispersions

If logwav is yes, the wavelength is output as log wavelength rather than linear wavelength.

If renormalize is yes, renormalize flux or counts to this number, mean if it's negative, maximum if it's positive.

Formats

Formats for output numbers are set using C-style format codes in numform, pixform, waveform, and fluxform,

Limits

If lambda1is set, start with the first pixel with a wavelength greater than or equal to lambda1 in angstroms. If lambda2is set, stop with the last pixel with a wavelength less than or equal to lambda2 in angstroms. If pix1is set, start at that pixel number (overidden by lambda1). If pix2is set, end with that pixel number (overidden by lambda2). nsumis the number of cross-dispersion pixels to sum, usually 1.

Output Spectrum Format

A blank (all zero) spectrum, with the object name specobj and file name specfile in the directory specdiris created. It is linear in wavelength, with a resolution of pix_lambda Angstroms from st_lambda to end_lambda. World coordinate system information is then written to the header.

If verbose is yes, files specified by logfiles are opened and a header is written.

Output Spectrum

If nothing is set, the output ASCII spectrum is written line by line to standard output. If heading is yes, a one-line description is generated and output before the specrum. If outfile is yes, the list is written to an output file starting with the root of the input file name and ending in .wav

Last updated June 19, 2019 by Jessica Mink

Telescope Data Center [rvsao] [linespec]