airbornegeo.median_line_spacing

airbornegeo.median_line_spacing#

median_line_spacing(data, line_column)[source]#

Estimate the flight line spacing by first, for each point on a specific line, finding the distances to the nearest point on another line and repeating this for all lines. Then take the median of these nearest neighbor distances. If you want to find flight lines spacing versus tie line spacing, only supply one line type at a time.

Parameters:
  • data (DataFrame) – The dataframe containing columns ‘easting’, ‘northing’, and the column given by line_column, to compute the median line spacing for.

  • line_column (str) – name of the column containing the line number/name

Returns:

the median of the distances to the nearest point on another line for each data point, as an approximation of flight lines spacing.

Return type:

float