wakatools.io.kingdom_exports.single_horizon#

wakatools.io.kingdom_exports.single_horizon(filename: str | Path, columns: Sequence[str] | None = None) DataFrame[source]#

Reads a Kingdom export file containing data from a single seismic horizon into a DataFrame. The export is expected to be of type “X Y Line Trace Time Amplitude”. Custom column names can be provided for alternative export formats.

Parameters:
  • filename (str | Path) – Path to the Kingdom export file

  • columns (Sequence[str] | None, optional 'X Y Line Trace Time Amplitude') – Optional input for column names if export is different, by default None

Returns:

DataFrame containing the seismic data.

Return type:

pd.DataFrame

Raises:

ValueError – If length of the columns do not match the dataframe length, raise ValueError.