prepare.ELODIE: Read an ELODIE Spectrum as Template

Description Usage Arguments Details Value Author(s) See Also

View source: R/prepare.ELODIE.R

Description

This function provides a wrapper to prepare.template specifically geared to ELODIE spectra.

Usage

1
2
3
prepare.ELODIE(ident, config.file = NULL, path = NULL, type="H",
               lambda.lim = NULL, resolution.target=NULL,
               contdiv=FALSE, contsub=FALSE, ...)

Arguments

ident

character string identifying an ELODIE spectrum. This is the basename of the corresponding fits file.

config.file

name of a configuration file. This can be used to specify a wavelength range to be used with a given target galaxy.

path

optional character string to specify non-standard path to the ELODIE library

type

Choose high ("H") or low ("L") resolution version of ELODIE spectra. The high-resolution spectra have R=42,000 and a normalized ot the continuum. The low-resolution spectra have R=10,000 and are flux-calibrated.

lambda.lim

two-component vector giving the wavelength range to be read from the template spectrum. If NULL, the entire spectrum is read.

resolution.target

Instrumental resolution (sigma!) of the spectrum that is to be fitted.

contdiv

logical. If TRUE, the spectrum will be divided by a polynomial fit to the continuum. Since the ELODIE spectra are normalised to the continuum, this is set to FALSE by default.

contsub

logical. If TRUE a polynomial fit to the continuum will be subtracted. Since the ELODIE spectra are normalised to the continuum, this could be done by subtracting 1 and the parameter is set to FALSE by default.

...

Further parameters to be passed to prepare.template.

Details

The ELODIE library is expected to reside in $SLACS_HOME/ELODIE/H. A non-standard path can be given with path.

From a given resolution.target, the routing automatically computes the required width of the smoothing kernel used by prepare.template. The instrumental resolution of the ELODIE spectra is ??? Angstroms.

The object name and atmospheric parameters are looked for in keywords OBJECT, SPTYPE, I\_FE\_H, I\_TEFF and I\_LOGG.

Value

An object of class spectrum, resampled to a logarithmic wavelength vector.

Author(s)

Oliver Czoske

See Also

prepare.template, prepare.spectrum


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