export_example_format_las

petrophys.reporting.export_example_format_las

export_example_format_las(well, filepath, set_name=None, original_curves=None)[source]

Write a well to LAS 2.0 in the example delivery format.

The file has the delivery header blocks (well information, a parameter block with a TLFamily_<curve> log-family entry per curve, curve information) and one row per depth sample, with nulls written as -9999. Curves are written in the standard delivery order; internal flags and duplicate raw curves are left out.

Parameters:
  • well (Well) – The well to write, usually an interpreted one.

  • filepath (str or Path) – Output LAS path. Missing parent folders are created.

  • set_name (str, optional) – Value of the SET parameter; defaults to "<well name> Petrophys Export".

  • original_curves (set of str, optional) – Names of the curves read from the input file. Curves outside the standard delivery list are written only if they are in this set, so working curves added during interpretation are left out. Defaults to every curve of well.

Returns:

The file written.

Return type:

Path

Examples

>>> import petrophys as pp
>>> from petrophys.reporting import export_example_format_las
>>> result = pp.interpret(pp.read(pp.sample("30_6-5")), rw=0.07, rw_meas_temp="230 degF")
>>> export_example_format_las(result.well, "delivery/30_6-5.las")
PosixPath('delivery/30_6-5.las')