Example - 60 - Compute v_inf and arrival declination from flyby dates (1)

In this example, we compute the arrival v_inf and declination from a trajectory whose last flyby and arrival dates are known.

Note: This examples requires astropy and poliastro to be installed. These are not installed by default when AMAT is installed and must be installed separately using pip install astropy and pip install poliastro.

import numpy as np
from astropy.time import Time
from AMAT.arrival import Arrival
arrival = Arrival()
                                      lastFlybyDate=Time("2032-06-29 00:00:00", scale='tdb'),
                                      arrivalDate=Time("2039-01-03 00:00:00", scale='tdb'))
print("Arrival v_inf vector, ICRF: "+str(arrival.v_inf_vec)+" km/s")
Arrival v_inf vector, ICRF: [17.78952518  8.62038536  3.15801163] km/s
print("Arrival Declination: "+str(round(arrival.declination, 2))+" deg.")
Arrival Declination: 8.76 deg.