prepare.template: Prepare a template spectrum for kinematic analysis

Description Usage Arguments Details Value Author(s) See Also

Description

Read in a template spectrum from a fits file and prepare for the kinematic analysis of a galaxy spectrum.

Usage

1
2
3
prepare.template(config, file, z.temp = 0, lambda.lim=NULL, dv = 25,
                 contsub = TRUE, contdiv = TRUE, order = 16,
                 smooth.kernel = NULL, log = TRUE, ...)

Arguments

config

name of a file or list containing relevant data on the object on which the kinematic analysis is to be performed

file

fits file containing the template spectrum. Filters are allowed as understood by cfitsio

z.temp

redshift of the template (mostly 0)

lambda.lim

wavelength range to be cut from the spectrum. If NULL use the entire range.

dv

velocity step onto which the template spectrum will be rebinned if log == TRUE

contsub

logical. If TRUE a polynomial fit to the continuum will be subtracted

contdiv

logical. If TRUE, the spectrum will be divided by a polynomial fit to the continuum

order

order of polynomial fit to the continuum

smooth.kernel

numeric. If non-NULL, convolve the spectrum with a Gaussian with sigma smooth.kernel. This only works correctly if the spectrum is natively sampled on a linear wavelength scale.

log

logical. If TRUE, the template is resampled on to a logarithmic wavelength scale with velocity step dv (default).

...

further arguments to be passed to prepare.spectrum (especially normalize)

Details

Read in a spectrum from a fits file to be used as the template in the kinematic analysis of a galaxy spectrum. Optionally, a polynomial fit to the continuum will be subtracted. If the redshift of the template is not zero, deredshift the template spectrum. The template spectrum is by default rebinned onto a logarithmic wavelength grid with constant velocity step dv.

Value

a dataframe containing the following components:

lambda

logarithmic wavelength grid

name

name of fits file from which template was read

value

value of the spectrum interpolated to the logarithmic wavelength grid

contsub

value of the spectrum after continuum subtraction

Author(s)

Oliver Czoske

See Also

prepare.spectrum, prepare.cube


oczoske/slacR documentation built on May 20, 2019, 8:23 p.m.