Skip to content

Commit

Permalink
add back in var term for type 1 solutions refitting test
Browse files Browse the repository at this point in the history
  • Loading branch information
sblunt committed Nov 27, 2023
1 parent fc50ccf commit 1267f61
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions orbitize/hipparcos.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,6 @@ def __init__(

f2 = solution_details["F2"].values[0]

# if the star has a type 1 (stochastic) solution, we need to undo the addition of a jitter term in quadrature
self.eps = np.sqrt(self.eps**2 - self.var**)

# sol types: 1 = "stochastic solution", which has a 5-param fit but
# there were significant residuals. 5 = standard 5-param fit.
if self.solution_type not in [1, 5]:
Expand Down Expand Up @@ -284,6 +281,9 @@ def __init__(
self.R = self.R[good_scans]
self.eps = self.eps[good_scans]

# if the star has a type 1 (stochastic) solution, we need to undo the addition of a jitter term in quadrature
self.eps = np.sqrt(self.eps**2 - self.var**2)

epochs = Time(times, format="decimalyear")
self.epochs = epochs.decimalyear
self.epochs_mjd = epochs.mjd
Expand All @@ -303,6 +303,9 @@ def __init__(

self.eps *= f

# also add back in the var term for type 1 solutions
self.eps = np.sqrt(self.eps**2 + self.var**2)

# reconstruct ephemeris of star given van Leeuwen best-fit (Nielsen+ 2020 Eqs 1-2) [mas]
changein_alpha_st = (
self.plx0
Expand Down

0 comments on commit 1267f61

Please sign in to comment.