export_excel

petrophys.io.export_excel

export_excel(
well,
filepath,
curves=None,
include_depth=True,
sheet_name='Log Data',
include_header=True,
**kwargs,
)[source]

Export Well to Excel file.

Parameters:
  • well (Well) – Well object to export

  • filepath (str or Path) – Output file path. The file is written as .xlsx; another suffix (including .xls) is replaced by .xlsx.

  • curves (list of str, optional) – Specific curves to export (default: all)

  • include_depth (bool, optional) – Whether to include depth column (default: True)

  • sheet_name (str, optional) – Name for the data sheet (default: “Log Data”)

  • include_header (bool, optional) – Whether to include header information (default: True)

  • **kwargs – Additional arguments passed to DataFrame.to_excel

Examples

>>> from petrophys.io import export_excel
>>> export_excel(well, "output.xlsx")