odbind.seismic2d
Module Contents
Classes
A class for an OpendTect 2D seismic dataset |
- class odbind.seismic2d.Seismic2D(survey: odbind.survey.Survey, name: str)
Bases:
odbind.survey._SurveyObject
A class for an OpendTect 2D seismic dataset
- classmethod _initbindings(bindnm)
- __enter__()
- __exit__(type, value, traceback)
- close()
- line_info(forlinenms: list[str] = []) dict
Return basic information for all or a subset of lines in this 2D dataset.
Parameters
- forlinenmslist[str]=[]
(Optional) a list of line names to use. For an empty list information for all lines in the dataset is provided.
Returns
dict
- line_info_dataframe(forlinenms: list[str] = []) dict
Return basic information for all or a subset of lines in this 2D dataset as a Pandas DataFrame.
Parameters
- forlinenmslist[str]=[]
(Optional) a list of line names to use. For an empty list information for all lines in the 2D dataset is provided.
Returns
Pandas Dataframe
- getdata(linenm: str) tuple
Read the data for the given linenm
Reads all components and various supporting data and returns a tuple of: - a numpy array for each seismic component - a Python dict with information about the data
The information dict has the following keys and data: - ‘comp’: list[str] of the seismic component names - ‘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 - ‘twt’ | ‘depth’: list[float] with the Z start, stop and step (in display units) - ‘dims’: list[str] dimensions of the trace data
Parameters
- linenmstr
line name to read
Returns
tuple : list[np.ndarrays], one array per seismic component and info dict
- as_xarray(data: list[numpy.ndarray], info: dict)
Convert data returned by getdata method to Xarray Dataset
Parameters
- datalist[np.ndarray]
seismic data for each of the components, in trc, z axis order
- infodict
as returned by the getdata method, at minimum require ‘trc, ‘xline’ and ‘twt|depth’ fields
Returns
Xarray.Dataset