Skip to main content

Simple labeling tool for segyio files

Project description

# Labelmaker #

The Labelmaker tool provides a method to categorize layers in seismic data. The tool uses segyio to read seismic data and Matplotlib to produce the graphical overview to the user.

The user draws an area (polygon) containing the layer at hand and selects the type.

### Command line arguments:

-d or –compare: Specify overlay results. Previously exported segy results
from the labelmaker may be added with this argument. In such case the results will overlay the inputfile and it will not be possible to create new polygons.
-t or –threshold: Set point selection sensitivity. The setting impacts the
radius when selecting points to move. Default: 0.01.
-p or –prefix: File path prefix for exported results.
Default:’Labelmade-‘.
-x or –horizontal: Downsample horizontally (keep every n trace).
Note that the exported results will have the original sampling rate
-y or –vertical: Downsample vertically (keep every n sample)
Note that the exported results will have the original sampling rate
-l or –load: Specify file for saved polygons. Previously saved
polygons may be added with this argument (see keyboard shortcut ctrl+p)

-c or –cmap: Set color map. default is “seismic”.

Mouse shortcuts:

<Left Mousebutton> Creates a point in the plot. Further addition of points
creates a line between the points.

### Keyboard shortcuts:

<enter> Draws a polygon based on the points selected by the user. Also resets
the points in the line, such that the next point created by clicking the mousebutton starts on a new line.

<escape> Clear drawn points.

<z> Undo last created point.

<d> Removes the polygon which the cursor currently hovers. This action
will do nothing if the cursor is not hovering a polygon.
<u> Undo deletion of last polygon. This action will only add the latest
removed polygon.

<e> Edit the polygon which the cursor currently hovers. This also applies for polygons that have been loaded from file.

<ctrl+e> Export the results. The Labelmaker creates a new segy file with the
same headers, text content and dimensions as the input file. The segy file contains 0-values for all coordinates outside of any drawn polygon. Depending on the type chosen by the user, the coordinates within polygons will have values from 1 to n.
<ctrl+p> Save polygon paths to file. The polygons are saved as
“polys-“<filename>.json. The file can be used as argument to load the polygons at a later time.
<ctrl+i> Open a new figure which describes the available color and
textures that may be applied to polygons.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
labelmaker-0.3.1-py3-none-any.whl (9.9 kB) Copy SHA256 hash SHA256 Wheel 3.5

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page