Using Python to Edit a Shape File for the Mineral Rights Plugin

The following tutorial will show you how to modify a shape file which can be used with the mineral rights plugin. All shapes used in this example are attached in the exampleshapes.zip file at the bottom of this page.

The following screenshot shows where the example shape (in blue) lies on the map view of the seismic being cut.

Editing a Shape to use the "Severed Depths" option of the Mineral Rights plugin

The following script will take an empty shape file and add the severed depths tag, and a start and end depth. When used with the mineral rights plugin, all data contained within the shape and depth range will be cut. The script is attached at the bottom of this page.

The screenshots below is an output of the mineral rights plugin based upon the depth_polyline.shp file.

These screenshots show the ones-zeroes mask which will be used to cut the data. Areas colored yellow will be cut, the rest will be kept when the mask is applied.

Editing a Shape to use the "Formation" option of the Mineral Rights plugin

The following script will take the empty example shape file and add a formation. The script is attached at the bottom of this page.

When used with the mineral rights plugin, all data contained within the shape will be cut except for the depth range selected in the wizard. For this example, 2000 and 3000 feet were chosen.

The screenshots below is an output of the mineral rights plugin based upon the depth_polyline.shp file.

These screenshots show the ones-zeroes mask which will be used to cut the data. Areas colored yellow will be cut, the rest will be kept when the mask is applied.