Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
incremented planetid by 1 to match horizons database and netcdf
Browse files Browse the repository at this point in the history
  • Loading branch information
cwishard committed Aug 26, 2021
1 parent 4e1e44b commit b0678b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/swiftest/swiftest/init_cond.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,9 @@ def solar_system_horizons(plname, idval, param, ephemerides_start_date, ds):
pvec = np.vstack([pvec, p7, p8, p9, p10, p11, p12])

if idval is None:
plid = np.array([planetid[key]], dtype=int)
plid = np.array([planetid[key]+1], dtype=int)
else:
plid = np.array([idval], dtype=int)
plid = np.array([idval]+1, dtype=int)

# Prepare frames by adding an extra axis for the time coordinate
plframe = np.expand_dims(pvec.T, axis=0)
Expand Down

0 comments on commit b0678b9

Please sign in to comment.