read_dlis¶
petrophys.io.read_dlis
- read_dlis(
- filepath,
- frame_name=None,
- channels=None,
- logical_file=0,
- depth_unit=None,
- include_vector_channels=True,
- merge_frames=None,
- standardize=None,
- step=None,
- step_strategy='finest',
- max_samples=2_000_000,
- channel_preference=None,
- **kwargs,
Read DLIS file and return Well object.
- Parameters:
filepath (str or Path) – Path to DLIS file
frame_name (str, optional) – Name of frame to read
channels (list of str, optional) – Specific channels to read
logical_file (int, optional) – Index of logical file to read (default: 0)
depth_unit (str, optional) – Target depth unit. By default a merged read is in metres, and a single-frame read converts DLIS
0.1 indepth to metres and keeps other depth units.merge_frames (bool, optional) – Merge scalar channels from all selected frames onto one depth index. By default, this is enabled when no frame_name is supplied so DLIS behaves like a full well-log input. Set False to read a single frame.
include_vector_channels (bool, optional) – Keep vector channels (spectra, images) on a single-frame read. The merged read keeps scalar channels only.
standardize (bool, optional) – Standardize curve names and units. Default: True for a merged read, False for a single frame (read as stored).
step (float | None) – Depth step (or how to pick it:
"finest"), sample cap, and the preferred source frame per curve of the merged read. A single frame givenstep,channel_preferenceor anotherstep_strategyis read through the merged path (scalar channels, resampled).step_strategy (str) – Depth step (or how to pick it:
"finest"), sample cap, and the preferred source frame per curve of the merged read. A single frame givenstep,channel_preferenceor anotherstep_strategyis read through the merged path (scalar channels, resampled).max_samples (int) – Depth step (or how to pick it:
"finest"), sample cap, and the preferred source frame per curve of the merged read. A single frame givenstep,channel_preferenceor anotherstep_strategyis read through the merged path (scalar channels, resampled).channel_preference (Mapping[str, str] | None) – Depth step (or how to pick it:
"finest"), sample cap, and the preferred source frame per curve of the merged read. A single frame givenstep,channel_preferenceor anotherstep_strategyis read through the merged path (scalar channels, resampled).**kwargs – Other keywords are not accepted and raise TypeError.
- Returns:
Well object with loaded data
- Return type:
Examples
>>> from petrophys.io import read_dlis >>> well = read_dlis("well_data.dlis")