xpectra.band_area

xpectra.band_area(X, wavenumbers, lo, hi, mode='area', subtract_local_baseline=True)[source]

Integrated area (or peak height) of a wavenumber window.

With subtract_local_baseline, a straight line between the window’s endpoints is removed first — the usual convention for band indices.

Parameters:
Return type:

ndarray