Flyby is a sub-class of
Trajectory where the spacecraft is at an altitude below a given one to the target surface. These configurations provide a unique opportunity to study the target at high spatial resolution.
In general, these orbital configuration are known in advance (e.g. from the mission timeline) but you can also re-compute these opportunities on your own.