odbind.horizon3d
Module Contents
Classes
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)
- 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