
Baseline Fitting

Fri, 08/31/2007 - 02:36 pm
The baseline fitting package is a baseline fitting utility for spectral data. The project builds upon the baseline fitting part of the procedure from Wavemetrics Technical Note #020 Peak Measurement and Fitting.
Additional features include:
- Use of the marquee popup menus and the marquee for efficient input
- Option to fit many traces at once
- Smoothed spline baseline
- Interactive 'line between cursors' baseline
- Option to fit a tangent to two curved regions of spectrum
- Procedure file includes instructions for adding a user-defined fitting function
How to use the Baseline Fitting package
The spectra to be fit must be plotted in the top graph window. When you select Baselines from the macros menu a baseline control panel is attached to the graph. Select spectrum and baseline type from popup menus in the control panel. Use the graph marquee tool (click and drag) to select a region of the spectrum, then either click within the marquee and select Add region to fit, or click the + button in the control panel to add the selected range of data to the fit. The fit is updated each time you change the data selection. Subtract will make copies of the current baseline and baseline-subtracted waves in the current data folder. The All In One button fits the same baseline to each of the traces on the plot, automatically subtracting the baseline from each plotted spectrum. The output waves have a _Sub or _BL suffix. Close the panel to clean up after fitting.
Some baseline options
Most of Igor's built-in curve fitting functions are selectable as baseline types.
The tangent baseline will attempt to find a common tangent to two cubic functions. You must have two regions selected for fitting. The fit will be successful only if the selected regions can each be fit nicely with a cubic function, and if the two cubics have a common tangent.
The line between cursors baseline draws a line that passes through the free cursors labelled I and J. The baseline updates as you move the cursors.
The gauss3 baseline fits a Gauss1D function with the first coefficient set to 0.
Choose spline to fit a smoothing spline though the masked regions. A SetVariable control will appear on the panel, allowing you to adjust the smoothness parameter until you're satisfied with the fit.
If you wish to add a user-defined fitting function, take a look at the functions at the end of the baselines procedure file. Edit these functions where indicated to wrap your own fitting code into the baseline fitting GUI.
See also my Arc Hull package for a collection of baselines that are fully defined and reproducible. For a more free-form baseline fitting method, see my Baseline Spline Fit package.
Project Details
Current Project Release
Baseline Fitting IGOR.6.30.x-3.08
Release File: | Baselines.ipf |
Version: | IGOR.6.30.x-3.08 |
Version Date: | Fri, 11/02/2018 - 01:34 pm |
Version Major: | 3 |
Version Patch Level: | 08 |
OS Compatibility: | Windows Mac-Intel |
Release Notes: |
restores printing to history of commands for setting mask regions |

Forum

Support

Gallery
Igor Pro 8
Learn More
Igor XOP Toolkit
Learn More
Igor NIDAQ Tools MX
Learn More