resqpy.olio.simple_linesΒΆ

simple_lines.py: functions for handling simple lines in relation to a resqml grid.

Functions

drape_lines

Roughly drapes lines over grid horizon; draped lines are suitable for 3D visualisation.

drape_lines_to_rods

Roughly drapes lines near grid cross section; draped lines are suitable for 3D visualisation.

duplicate_vertices_removed

Returns a copy of the line with neighbouring duplicate vertices removed.

nearest_pillars

Finds pillars nearest to each point on each line; returns list of lists of (j0, i0).

nearest_rods

Finds rods nearest to each point on each line; returns list of lists of (k0, j0) or (k0, i0).

polygon_line

Returns a copy of the line with the last vertex stripped off if it is close to the first vertex.

read_lines

Returns a list of line arrays, read from ascii file.