odbind.horizon2d

Module Contents

Classes

Horizon2D

A class for an OpendTect 2D horizon

class odbind.horizon2d.Horizon2D(survey: Survey, name: str)

Bases: odbind.survey._SurveyObject

A class for an OpendTect 2D horizon

property attribnames: list[str]

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

classmethod _initbindings(bindnm)
lineids() list[int]

Return the OpendTect line indices of 2D lines in this 2D horizon.

Returns

list[int]

linename(lineid) str

Return the line name of the 2D line with the given lineid.

Returns

str

linenames() list[str]

Return the line names of 2D lines in this 2D horizon.

Returns

list[str]

getz(lineid)

Get the 2 horizon Z values for the given lineid as a Numpy array

Returns

Numpy 1D array with the horizon Z values for the given lineid

getxy(lineid)

Get the 2D horizon X,Y and trace number values for the given lineid as Numpy arrays

Returns

Tuple of Numpy 1D arrays with the horizon X, Y, trace number values for the given lineid

get_xarray(lineid)

Get the 2D horizon Z values for the given lineid as an XArray DataArray

Returns

XArray DataArray with the horizon Z values for the given lineid and trace numbers and X/Y coordinates