export_context_profile¶
petrophys.reporting.export_context_profile
- export_context_profile(
- input_dir,
- output_dir,
- *,
- context_profile,
- work_dir,
- well_names=None,
- pattern='*.las',
- recursive=False,
- tops_file=None,
- lithology_mapping_file=None,
Compute a published GeoLink, GeoLink training, COSTA or Danish context package from its LAS files.
- Parameters:
input_dir (str or Path or None) – The delivery’s raw LAS files: the GeoLink
evalfolder, the GeoLink training package’sLAS_with_petrophys_paramsfolder, the Danish raw LAS, or the COSTA LAS (None for the COSTA copies bundled with petrophys).output_dir (str or Path) – Folder for the category context JSON.
context_profile (str) –
"geolink_v1","geolink_train_v1","costa_v1"or"danish_v1"(aliases"geolink","geolink_train","costa","danish").work_dir (str or Path) – Folder for
processed_las: the interpreted LAS the context is computed from, with workflow traces.well_names (sequence of str, optional) – Only these wells.
pattern (str, default
"*.las") – The delivery files to read; the packages were made from LAS files.recursive (bool, default False) – Not supported: a context profile reads one folder of LAS files, and True raises ValueError.
tops_file (str or Path, optional) – Required by the GeoLink, GeoLink training and Danish profiles: the formation tops workbook (the NPD picks for GeoLink and the training package, the Danish tops workbook) and the GeoLink/Kingdom lithology codebook.
lithology_mapping_file (str or Path, optional) – Required by the GeoLink, GeoLink training and Danish profiles: the formation tops workbook (the NPD picks for GeoLink and the training package, the Danish tops workbook) and the GeoLink/Kingdom lithology codebook.
- Returns:
One per context file.
- Return type: