Template Preparation

Before using RVSpecFit, you need to prepare template files for your spectral configuration using the four-step pipeline:

  1. Create PHOENIX database (see rvs_read_grid for full details):

rvs_read_grid --prefix /path/to/PHOENIX/v2.0/HiResFITS/PHOENIX-ACES-AGSS-COND-2011/ --templdb files.db
  1. Make interpolated spectra (see rvs_make_interpol for full details):

rvs_make_interpol --setup mysetup --lambda0 4000 --lambda1 5000 \
    --resol_func '1000+2*x' --step 0.5 --templdb files.db \
    --oprefix /template/path/ --templprefix /PHOENIX/path/ \
    --wavefile WAVE_PHOENIX-ACES-AGSS-COND-2011.fits --air --revision=v2020x
  1. Create n-d interpolator (see rvs_make_nd for full details):

rvs_make_nd --prefix /template/path/ --setup mysetup --revision=v2020x
  1. Make cross-correlation files (see rvs_make_ccf for full details):

rvs_make_ccf --setup mysetup --lambda0 4000 --lambda1 5000 \
    --every 30 --vsinis 0,10,300 --prefix /template/path/ \
    --step 0.5 --revision=v2020x
  1. Create configuration file (config.yaml):

template_lib: '/path/to/template_data/'
min_vel: -1500
max_vel: 1500
min_vel_step: 0.2
vel_step0: 5
min_vsini: 0.01
max_vsini: 500
second_minimizer: 1

Template Preparation Tools

Command-Line Tools

RVSpecFit includes several command-line tools for template preparation:

Database Creation

Interpolation

N-D Interpolator

Cross-Correlation Templates