The calculation of a spacecraft trajectory1 are performed in 3 stages:
You need to configure your choice of orbital configuration (choice of a metakernel or/and a set of kernels, the main observer and a target).
You will need to choose, which temporal window of the trajectory you want to study.
Then you will have to choose which trajectory properties you want to compute and plot.
[Optional] Filter the data with a given criteria.
It corresponds to the trajectory of the sub-spacecraft point on the target surface. This point is always defined even if the spacecraft is not pointing towards the target.