swiftest.tool.follow_swift

Contents

swiftest.tool.follow_swift#

swiftest.tool.follow_swift(ds, ifol=None, nskp=None)[source]#

Emulates the Swift version of tool_follow.f It will generate a file called follow.out containing 10 columns (angles are all in degrees):

1 2 3  4    5     6    7    8    9   10
t,a,e,inc,capom,omega,capm,peri,apo,obar
Parameters:
  • ds (Xarray Dataset) – Dataset containing orbital elements

  • ifol (int, optional) – Particle number to follow. The default is None, in which case the user is prompted to enter a particle number.

  • nskp (int, optional) – Print frequency. The default is None, in which case the user is prompted to enter a print frequency.

Returns:

fol (Xarray Dataset) – Dataset containing only the followed body with angles converted to degrees