Skip to content

Commit

Permalink
fix long dated bug with hardcoded oblecl
Browse files Browse the repository at this point in the history
  • Loading branch information
Matías Graña committed Oct 4, 2022
1 parent 619bd7a commit 2bbd798
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions orbit_predictor/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,10 @@ def _sun_eci(w, M, L, eccentricity, oblecl):
zeclip = 0.0

# rotate these coordinates to equatorial rectangular coordinates
# (skip the zeclip portion since zeclip == 0)
xequat = xeclip
yequat = yeclip * cos_d(oblecl) + zeclip * sin_d(oblecl)
zequat = yeclip * sin_d(23.4406) + zeclip * cos_d(oblecl)
yequat = yeclip * cos_d(oblecl)
zequat = yeclip * sin_d(oblecl)

return [xequat, yequat, zequat]

Expand Down

0 comments on commit 2bbd798

Please sign in to comment.