pycsamt.format.borehole.lasio#

Loss-explicit LAS 2.0 subset import and export for PCBH.

Functions

borehole_from_las(path, *, collar, ...[, ...])

Import a LAS 2.0 curve subset while retaining curve metadata.

write_las_subset(borehole, path, *[, ...])

Write inline PCBH curves, or an interval-derived LAS subset.

Classes

LASExportReport(path[, curves_written, ...])

Preservation and loss summary for a LAS subset export.

class pycsamt.format.borehole.lasio.LASExportReport(path, curves_written=<factory>, losses=<factory>, warnings=<factory>)[source]

Bases: PyCSAMTObject

Preservation and loss summary for a LAS subset export.

Parameters:
path: str
curves_written: list[str]
losses: list[str]
warnings: list[str]
pycsamt.format.borehole.lasio.borehole_from_las(path, *, collar, crs_horizontal, kind='unknown', status='unknown', depth_curve='DEPT', resistivity_curve='RESD', lithology_curve='LITH', max_samples=250000)[source]

Import a LAS 2.0 curve subset while retaining curve metadata.

Parameters:
  • path (str | Path)

  • collar (Collar)

  • crs_horizontal (str)

  • kind (str)

  • status (str)

  • depth_curve (str)

  • resistivity_curve (str)

  • lithology_curve (str | None)

  • max_samples (int)

Return type:

tuple[PCBHDocument, ImportReport]

pycsamt.format.borehole.lasio.write_las_subset(borehole, path, *, null_value=-9999.25, company='pycsamt')[source]

Write inline PCBH curves, or an interval-derived LAS subset.

Parameters:
  • borehole (PCBHBorehole)

  • path (str | Path)

  • null_value (float)

  • company (str)

Return type:

tuple[Path, LASExportReport]