resqpy.well.WellboreMarker

class resqpy.well.WellboreMarker(parent_model, parent_frame, marker_index, marker_node=None, marker_type=None, interpretation_uuid=None, title=None, originator=None, extra_metadata=None)

Bases: object

Class to handle RESQML WellboreMarker objects.

Note

wellbore markers are not high level RESQML objects

Public Data Attributes:

resqml_type

boundary_feature_dict

Methods:

__init__(parent_model, parent_frame, ...[, ...])

Creates a new wellbore marker object and optionally loads it from xml.

create_xml(parent_node[, title])

Creates the xml tree for this wellbore marker.


__init__(parent_model, parent_frame, marker_index, marker_node=None, marker_type=None, interpretation_uuid=None, title=None, originator=None, extra_metadata=None)[source]

Creates a new wellbore marker object and optionally loads it from xml.

Parameters
  • parent_model (model.Model object) – the model which the new wellbore marker belongs to

  • parent_frame (wellbore_marker_frame.WellboreMarkerFramer object) – the wellbore marker frame to which the wellbore marker belongs

  • marker_index (int) – index of the wellbore marker in the parent WellboreMarkerFrame object

  • marker_node (xml node, optional) – if given, loads from xml. Else, creates new

  • marker_type (str, optional) –

    the type of geologic, fluid or contact feature e.g. “fault”, “geobody”, “horizon “, “gas/oil/water down to”, “gas/oil/water up to”,

    ”free water contact”, “gas oil contact”, “gas water contact”, “water oil contact”, “seal”

  • interpretation_uuid (uuid.UUID or string, optional) – uuid of the boundary feature Interpretation organizational object that the marker refers to. note: it is highly recommended that a related boundary feature interpretation is provided

  • title (str, optional) – the citation title to use for a new wellbore marker ignored if uuid is not None;

  • originator (str, optional) – the name of the person creating the wellbore marker, defaults to login id; ignored if uuid is not None

  • extra_metadata (dict, optional) – string key, value pairs to add as extra metadata for the wellbore marker; ignored if uuid is not None

Returns

the newly created wellbore marker object

create_xml(parent_node, title='wellbore marker')[source]

Creates the xml tree for this wellbore marker.

Parameters
  • parent_node (xml node) – the root node of the WellboreMarkerFrame object to which the newly created node will be appended

  • title (string, optional) – the citation title of the newly created node note: if not None, self.title will be used instead of “wellbore marker”

Returns

the newly created xml node