CurveStandardizer¶
petrophys.preprocessing.standardization.CurveStandardizer
Also available as petrophys.preprocessing.CurveStandardizer
- class CurveStandardizer(
- rename_curves=True,
- convert_units=True,
- preserve_originals=False,
- relabel_equivalent_units=True,
- plausible_ranges=None,
Standardizes curve mnemonics and units.
This class provides functionality to: - Map curve aliases to standard mnemonics - Convert units to standard units - Handle multiple variants of the same curve type
- Parameters:
rename_curves (bool, optional) – Whether to rename curves to standard mnemonics (default: True)
convert_units (bool, optional) – Whether to convert to standard units (default: True)
preserve_originals (bool, optional) – Keep original curves with _ORIG suffix (default: False)
relabel_equivalent_units (bool, optional) – Write the standard unit label on a curve whose unit is another spelling of it, with a conversion factor of 1, e.g.
gAPIforAPI(default: True). False leaves such labels as written.plausible_ranges (dict, optional) –
{standard mnemonic: (low, high)}limits of the implausible-value screening, in the standard units; defaultCURVE_PLAUSIBLE_RANGES.
Examples
>>> standardizer = CurveStandardizer() >>> well = standardizer.standardize(well)
Attributes
Rewrite a curve's unit label to the standard one even when the two are equivalent (conversion factor 1), e.g.
m3/m3tov/v.Methods
Add a custom alias mapping.
Find a curve of specified type in well.
Get the standard mnemonic for a curve.
Generate standardization report for a well.
Standardize all curves in a well.
Standardize a single curve.
- relabel_equivalent_units¶
Rewrite a curve’s unit label to the standard one even when the two are equivalent (conversion factor 1), e.g.
m3/m3tov/v. When False such labels are left as the source wrote them.