ramanspy.preprocessing.baseline.Poly

class ramanspy.preprocessing.baseline.Poly(*, poly_order=2, regions: List[Tuple[Number, Number]] = None)[source]

Baseline correction based on polynomial fitting.

Parameters:
  • poly_order (int, optional) – Order of polynomial to fit. Default is 2.

  • regions (list of tuples, optional) –

    Describes the regions (in cm^{-1}) used for selective masking. If None (default), all points are used. Examples:

    [(None, 300)] - only uses the bands < 300cm-1 [(3000, None)] - only uses the bands > 3000cm-1 [(700, 1800)] - only uses the bands between 700 and 1800 (i.e. the “fingerprint” region) [(300, 400), (500, 600)] - only uses the bands between 300 and 400, and 500 and 600

Note

Implementation based on pybaselines.

__init__(*, poly_order=2, regions: List[Tuple[Number, Number]] = None)[source]

Methods

__init__(*[, poly_order, regions])

apply(raman_objects)

Applies the defined preprocessing method on the Raman spectroscopic objects provided.