Estimate and subtract the baseline
Estimate the baseline with AsLS, a constant, a line, or a polynomial. Publish the corrected dataset and verify its columns and calculation receipt.
Prepare a correction using the original coordinates
Enable Baseline correction at the bottom of the window. A separate panel opens with the Source and output, Method and options, and Result tabs. Its source selection is independent of the trace in the plot above. In Source and output, choose the Canonical source Dataset, click Discover axes, and set Original floating X and Original floating Y.
For CHW, use time_s and signal_value. Choose two different one-dimensional floating-point variables with declared original units and identity transforms for both display and calibration. You can plot the integer adc_count column, and it remains in a derived CHW dataset. Baseline correction itself requires floating-point axes. Clear selection clears the source. Reset restores the default for the corresponding field.

Name the output dataset and columns
Under Fresh output Dataset ID, enter a new ID of up to 128 characters in the current session. Any existing ID, including the source ID, is rejected. Keep or change the three new column IDs. They must be distinct from one another and from the original column IDs.
- Field
- Estimated baseline Variable ID
- Default ID
baseline_estimate- Contents
- Estimated baseline in the signal’s unit
- Field
- Corrected Variable ID
- Default ID
corrected_signal- Contents
- Original response minus the estimated baseline, in the same unit
- Field
- Original row Variable ID
- Default ID
source_row_index- Contents
- Zero-based integer index of the original row
Choose the baseline method
In Method and options, choose one of four methods. All fields are visible. The calculation uses only the selected method’s parameters and the Nonfinite pairs policy.
- Method
asls(default)- Calculation
- Estimates a smooth baseline by penalizing curvature and weighting residuals asymmetrically. A small p reduces the influence of positive peaks.
- Settings used
- Grid policy, lambda, p, iteration limit, and tolerance
- Method
constant- Calculation
- Subtracts a user-defined constant from the entire trace. The default is
0in the original Y unit. - Settings used
- Constant value (original Y unit)
- Method
linear- Calculation
- Fits a straight line to the usable points by least squares. Peaks can affect the slope and intercept.
- Settings used
- Requires at least two distinct X values. There are no fit settings.
- Method
polynomial- Calculation
- Fits a polynomial to the signal as a function of X. A higher degree gives a more flexible fit. Check that the fit follows the drift rather than the peaks.
- Settings used
- Polynomial degree defaults to
2and must be a nonnegative integer. There must be enough distinct coordinates to estimate the coefficients.



Set AsLS options and choose a grid policy
- The default AsLS grid policy,
uniform_x, requires 3 to 2,000,000 pairs, a monotonic X axis with unique values, and approximately uniform spacing.sample_indexapplies the penalty across consecutive samples, including when their times are unevenly spaced. It still requires a monotonic X axis with unique values. Where sampling density changes, the penalty across rows spans different time intervals. - AsLS lambda defaults to
100000. Choose a value greater than 0 and no greater than 1e16. A larger value penalizes curvature more heavily and produces a smoother baseline. The effect depends on the grid and X scale. - AsLS p defaults to
0.01and must lie between1e-8and1 − 1e-8. Small values downweight points above the estimate, such as upward peaks. - AsLS maximum iterations defaults to
50and accepts an integer from 1 to 500. AsLS tolerance defaults to1e-6. The allowed range starts at 0 inclusive and ends before 1. A smaller tolerance requires the weights to stabilize more closely before the calculation stops. Check the iteration count and convergence in the receipt. - Nonfinite pairs defaults to
error, which rejects the correction if either coordinate of a pair is nonfinite.omitexcludes those pairs from the baseline fit. A gap can make theuniform_xgrid irregular. With the test dataset with a missing value,errorrejects the correction.omitfits the six finite pairs and retains all seven rows in the derived dataset. Both the baseline estimate and corrected response are missing in the omitted row. Checkomitted_nin the receipt.
Smoothness and convergence describe the calculation. To judge the baseline, also examine peak-free regions, the blank, and the chromatographic conditions. The calculation does not propagate uncertainty from the baseline estimate.


Run, cancel, and inspect a correction
Click Create corrected Dataset. The fields are locked while the state is QUEUED or RUNNING. Cancel correction cancels a queued operation or requests that a running operation stop before registration. The state is CANCELLING while the request is pending. Once it reaches COMMITTED, the derived dataset is already in the session. If you close the panel with Baseline correction, enable the control again to resume. Inspect correction reopens the Result tab for the current attempt.
CANCELLED means that the operation was canceled. For FAILED, read the message in the report. A preflight rejection, such as a duplicate ID, may appear in the main status bar while the previous receipt stays visible. Check the dataset ID in the receipt. COMMITTED_DISPLAY_FAILED means that the derived dataset was registered but could not be displayed. Look for it on the Dataset page. This post-publication error state did not occur in the tested workflows.

Verify the plot, receipt, and numeric table
In Result, the blue curve is the original response, the red curve is the estimated baseline, and the green curve is the baseline-corrected response. The panel below identifies the output and source datasets and reports their hash, settings, columns, counts, and method details. To verify the values, open Dataset, select Activate Dataset from the derived dataset’s context menu, then use Open Dataset. Check the columns and verify that the rows match the source.
The derived datasets checked retain all 601 rows and every original column. Subtraction was verified row by row. For CHW corrected with AsLS, the response at 145.0 s is about 3.03489 µS/cm, the estimated baseline is about 0.83953 µS/cm, and the corrected response is about 2.19536 µS/cm. These values do not by themselves yield an analyte concentration.

