API Reference#

Geospatial data operations#

Functions for performing geospatial operations.

reproject(x, y, input_crs, output_crs)

Convert coordinates from input CRS to output CRS.

block_reduce(data, reduction, *, spacing, ...)

Reduce data by line based on the column(s) provided by reduce_by and the reduction function.

along_track_distance(data, *[, ...])

Calculate the distances along track in meters.

relative_distance(data)

Calculate distance between successive points in a dataframe.

Organizing survey data#

Functions for working with and organize survey flights.

split_into_segments(data, threshold, column_name)

Split dataframe into segments where there is a gap in the supplied values greater than the threshold.

unique_line_id(df[, line_col_name])

Convert supplied lines names into integers.

Quality Control (QC)#

Functions for automated and manual quality control of airborne geophysical survey data.

inspect_lines(df, *, plot_variable[, interp_on])

detect_outliers(df)

Detects outliers in each column of a Pandas DataFrame using the IQR method and visualizes them using box plots.

Processing#

Functions for processing airborne geophysical survey data.

filter1d(data, *, filter_type, data_column, ...)

Apply a 1D filter to a column of a pandas DataFrame along values of another column.

upward_continue_by_line(data, ...[, ...])

For each light line in a dataframe, fit a set of equivalent sources and then upward continue to data to a specified height and return the upward continued data.

sample_grid(data, grid, coord_names)

Sample grid values at supplied points in dataframe.

Levelling#

Functions for levelling airborne geophysical survey data.

level_to_grid(data, *, degree, data_column, ...)

Fit a trend to the misfit between the data_column and grid_column values and subtract the fitted trend from the data to level it to the grid values.

create_intersection_table(data, *[, ...])

create a dataframe which contains the intersections between provided flight and tie lines.

interpolate_intersections(df, intersections, ...)

_summary_

inspect_intersections(data, *, plot_variable)

plot_line_and_crosses(df, *, y[, line, x, ...])

plot lines and crosses

lines_without_intersections(data, intersections)

calculate_crossover_errors(data, ...[, ...])

Calculate mistie values for all intersections.

update_intersections_with_eq_sources(data, ...)

At each theoretical intersection point, replace the interpolated field value with a value predected by the fitted equivalent sources for the line, at the x,y coordinate of the intersection point, and the higher of the two lines' elevations.

line_levelling(data, inters, *, ...[, ...])

Level lines based on intersection misties values.

iterative_line_levelling(data, inters, *, ...)

alternating_iterative_line_levelling(data, ...)

plot_levelling_convergence(results, *[, ...])

Plotting functions#

plotly_points(df, *, color_col[, ...])

Create a scatterplot of spatial data.

plotly_profiles(data, *, y[, x, y_axes, ...])

plot data profiles with plotly currently only allows 3 separate y axes, set with "y_axes", starting with 1

inspect_lines(df, *, plot_variable[, interp_on])

plot_flightlines(fig, df, *[, plot_labels, ...])

plot_flightlines_grids(fig, df, *[, ...])