Skip to content

Commit

Permalink
store ccf value
Browse files Browse the repository at this point in the history
  • Loading branch information
segasai committed Nov 15, 2024
1 parent 27f3222 commit b9d0570
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions py/rvspecfit/desi/desi_fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,12 +255,14 @@ def proc_onespec(
yfit: list
List of best-fit models
"""
outdict = {}
chisqs = {}
chisqs_c = {}
t1 = time.time()
if ccf_init:
res = fitter_ccf.fit(specdata, config)
paramDict0 = res['best_par']
vrad_ccf = res['best_vel']
else:
res = vel_fit.firstguess(specdata, config=config, options=options)
res['best_vsini'] = res.get('vsini')
Expand Down Expand Up @@ -314,6 +316,8 @@ def proc_onespec(
outdict['CHISQ_%s' % s.replace('desi_', '').upper()] = chisqs[s]
outdict['CHISQ_C_%s' % s.replace('desi_', '').upper()] = float(
chisqs_c[s])
if ccf_init:
outdict['VRAD_CCF'] = vrad_ccf * auni.km / auni.s

outdict['RVS_WARN'] = get_rvs_warn(fit_res, outdict, config)

Expand Down

0 comments on commit b9d0570

Please sign in to comment.