odbind.horizon3d

Module Contents

Classes

Horizon3D

A class for an OpendTect 3D horizon

class odbind.horizon3d.Horizon3D(survey: Survey, name: str)

Bases: odbind.survey._SurveyObject

A class for an OpendTect 3D horizon

property attribnames: list[str]

list[str]: Names of attributes attached to this 3D horizon (readonly)

property ilines: list[int]

list[int]: Inline numbers included in this 3D horizon (readonly)

property xlines: list[int]

list[int]: Crossline numbers included in this 3D horizon (readonly)

classmethod _initbindings(bindnm)
classmethod create(survey: odbind.survey.Survey, name: str, inl_rg: list[int], crl_rg: list[int], overwrite: bool = False)

Create a new OpendTect 3D horizon object

Parameters

surveySurvey

An OpendTect survey object

namestr

OpendTect 3D horizon name

inl_rglist[int]

The inline range (start, stop and step) for the horizon

crl_rglist[int]

The crossline range (start, stop and step) for the horizon

overwritebool=False

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

Returns

A Horizon3D object

__enter__()
__exit__(type, value, traceback)
getz()

Get the 3D horizon Z values as a Numpy array

Returns

Numpy 2D array with the horizon Z values

getxy()

Get the 3D horizon X,Y values as Numpy arrays

Returns

Tuple of Numpy 2D arrays with the horizon X, Y values

get_xarray()

Get the 3D horizon Z values as an XArray DataArray

Returns

XArray DataArray with the horizon Z values and both inline/crossline and X/Y coordinates

putz(data, inlines, crlines)

Save the 3D horizon Z values from the data Numpy 2D array

Parameters

datanumpy.ndarray

Horizon Z values

inlinesarraylike

Inline locations of Z values

crlinesarraylike

Crossline locations of Z values

put_xarray(data_array)

Save the 3D horizon Z values from the data_array XArray DataArray

Parameters

data_arrayXArray DataArray

Horizon Z values and ‘inl’ and ‘crl’ coordinates