odbind.geom2d

Module Contents

Classes

Geom2D

A class for an OpendTect 2D line geometry

class odbind.geom2d.Geom2D(survey: odbind.survey.Survey, name: str)

Bases: odbind.survey._SurveyObject

A class for an OpendTect 2D line geometry

classmethod _initbindings(bindnm)
classmethod create(survey: odbind.survey.Survey, name: str, overwrite: bool = False)

Create a new OpendTect Geom2D object

Parameters

surveySurvey

An OpendTect survey object

namestr

OpendTect Geom2D name

overwritebool=False

Flag to indicate if the new geometry can replace an existing geometry of the same name

Returns

A Geom2D object

__enter__()
__exit__(type, value, traceback)
close()
getdata() dict

Read the line geometry

Returns a Python dict with the following keys and data: - ‘line’: str of the line name - ‘trc’: np.ndarray(int) with the trace numbers - ‘ref’: np.ndarray(float) with the SP numbers - ‘x’: np.ndarray(double) with the x coordinates of the traces - ‘y’: np.ndarray(double) with the y coordinates of the traces

Returns

dict

putdata(data)

Write the line geometry to an OpendTect

Parameters

dataPython dict with the following keys and data:
  • ‘trc’: np.ndarray(int) with the trace numbers

  • ‘ref’: np.ndarray(float) with the SP numbers

  • ‘x’: np.ndarray(double) with the x coordinates of the traces

  • ‘y’: np.ndarray(double) with the y coordinates of the traces