Python API#

An overview of the Python Tool Pro API to get you going with Python Tool Pro.

PTP classes#

PetrelConnection([allow_experimental, ...])

Creates a connection to Petrel.

Grid(petrel_object_link)

GridProperty(petrel_object_link)

GridDiscreteProperty(petrel_object_link)

Zone(petrel_object_link)

A class holding information about a zone

Zones(parent_obj)

An iterable collection of cegalprizm.pythontool.Zone objects.

Segment(petrel_object_link)

A class holding information about a segment

Segments(parent_obj)

An iterable collection of cegalprizm.pythontool.Segment objects.

Well(petrel_object_link)

A class holding information about a well.

WellSurvey(petrel_object_link)

A class holding information about a well survey

WellLog(petrel_object_link)

A class holding information about a continuous well log

DiscreteWellLog(python_petrel_welllog)

A class holding information about a discrete well log.

GlobalWellLog(python_petrel_global_well_log)

DiscreteGlobalWellLog(...)

ObservedData(petrel_object_link)

A class holding information about observed data

ObservedDataSet(petrel_object_link)

A class holding information about a observed data set

GlobalObservedDataSet(petrel_object_link)

A class holding information about a global observed data set

MarkerCollection(petrel_object_link)

A class holding information about a MarkerCollection.

MarkerAttribute(petrel_object_link, ...)

A class holding information about a MarkerAttribute

MarkerStratigraphy(name, droid, ...)

A class holding information about a MarkerStratigraphy

MarkerStratigraphies(parent)

An iterable collection of MarkerStratigraphy objects for the MarkerStratigraphies in the MarkerCollection

CompletionsSet(petrel_object_link)

EXPERIMENTAL CLASS! A class holding information about a completions set for a well.

CasingString(petrel_object_link)

A class holding information about a CasingString

CasingStringPart(parent, name, depth)

A part of a CasingString object for a completions set.

Perforation(petrel_object_link)

A class holding information about a Perforation

SeismicCube(petrel_object_link)

A class holding information about a seismic cube

SeismicLine(petrel_object_link)

HorizonInterpretation(python_petrel_property)

A class holding information about a Horizon Interpretation

HorizonInterpretation3d(python_petrel_property)

HorizonProperty3d(python_petrel_property)

Wavelet(python_petrel_property)

A class holding information about a wavelet

Surface(petrel_object_link)

SurfaceAttribute(petrel_object_link)

SurfaceDiscreteAttribute(petrel_object_link)

Chunk(i, j, k, backing_object, extent, ...)

An object allowing manipulation of the data in a Petrel object.

PointSet(python_petrel_pointset)

Class representing a point set in Petrel.

PolylineSet(python_petrel_polylineset)

A class holding many cegalprizm.pythontool.Polyline objects.

Polyline(polyline_set, polyline_index)

Represents a single polyline in a cegalprizm.pythontool.PolylineSet object.

Workflow(python_workflow_object)

A class holding information about a workflow

Helper Objects#

Extent(i, j, k)

The number of indices in each direction.

Indices(i, j, k)

Represents a set of indices.

Annotation(inline, xline, sample)

Represents a set of annotations for seismic objects.

CoordinatesExtent(cs_range)

Stores the minimum and maximum extent of an object in world-coordinates

AxisExtent(min, max)

The minimum and maximum positions of an axis of an object in world-coordinates