## Description

This tool can be used to approximate the combine harvester swath pass lines from yield points. It is sometimes the case that either pass-line information is not stored in the point data created during harvesting, or that this information is lost. The yield_filter and yield_map tools however require information about the associated swath path for each point in the dataset. This tool can therefore serve as a pre-processing operation before running either of those more advanced mapping tools. It works by examining the geometry of nearby points and associating points with line features that observe a maximum angular change in direction (`max_change_in_heading`). The tool creates two output vectors, including a pass line vector (`output`) and a points vector (`output_points`). The points output contains a `PASS_NUM` field within its attribute tables that indicate the unique identifier associated with features. The line vector output contains an `AVGYIELD` attribute field, which provides the pass-line average of the input yield values (`yield_field_name`).

For a video tutorial on how to use the recreate_pass_lines, yield_filter and yield_map tools, see this YouTube video. There is also a blog that describes the usage of this tool on the WhiteboxTools homepage.

## See Also

yield_filter, yield_map, reconcile_multiple_headers, remove_field_edge_points, yield_normalization

## Function Signature

`def recreate_pass_lines(self, input: Vector, yield_field_name: str, max_change_in_heading: float = 25.0, ignore_zeros: bool = False) -> Tuple[Vector, Vector]: ...`

## Project Links

WbW Homepage User Manual Support WbW