REMOVE LEADING AND TRAINING ZEROS IN Y VALUES IF FOUND¶
Strips consecutive zero-valued y points from the start and end of a curve, producing a trimmed curve with cleaner signal boundaries. Leading or trailing zeros are only removed when the count of such points does not exceed the user-defined limits. Use this worker to clean up test or simulation curves that contain zero-padded regions before or after the active signal.
When to use¶
Classification: process.
Tagged: cleanup, curve, leading_zeros, signal_trim, trailing_zeros, trim, zero_removal.
Inputs¶
| Label | ID | Type | Default | Required | Description |
|---|---|---|---|---|---|
| Curve | curve | vector | — | Input curve (x/y vector pair) whose leading and trailing zero y-values will be trimmed; accepts any time-history or signal curve. | |
| Maximum Number Of Points With Leading Zero-values | maximumnumberofpointswithleadingzero-values | scalar | 1 | Integer threshold for leading zeros: if the number of consecutive zero y-values at the start of the curve exceeds this value the leading zeros are left intact; default is 1. | |
| Maximum Number Of Points With Trailing Zero-values | maximumnumberofpointswithtrailingzero-values | scalar | 1 | Integer threshold for trailing zeros: if the number of consecutive zero y-values at the end of the curve exceeds this value the trailing zeros are left intact; default is 1. |
Outputs¶
| Label | ID | Type | Description |
|---|---|---|---|
| curve_remove_leading_and_trailing_zeros_output_1 | curve_remove_leading_and_trailing_zeros_output_1 | vector | Trimmed output curve with leading and/or trailing zero y-value points removed, preserving the original x-spacing of the remaining points. |
Disciplines¶
- data.curve.transform
- data.signal_processing
Runnable example¶
A runnable example is registered for this worker. Open the example workflow on the d3VIEW canvas: /api/workflow/example?id=curve_remove_leading_and_trailing_zeros
Auto-generated from transformation schema. Worker id: curve_remove_leading_and_trailing_zeros. Schema hash: 20c6d42c0bdb. Hand-curated docs in workerexamples/ override this page when present.