SCALE CURVES IN THE TABLE USING A PARAMETER DATASET¶
Scales the X and/or Y values of curves stored in a Define Table using per-row scale factors drawn from a Parameter Dataset. Use this worker when you need to apply row-matched, column-driven scaling (or offsetting) to a batch of curves in a single pass.
When to use¶
Classification: process.
Tagged: batch_transform, curve_scaling, define_table, offset, parameters, scale, x_scale, y_scale.
Inputs¶
| Label | ID | Type | Default | Required | Description |
|---|---|---|---|---|---|
| Define Table | dt1 | define_table | — | Define Table containing value-and-curve pairs to be scaled; the number of rows must match the number of rows in the Parameter Dataset. | |
| Parameters | parameters | dataset | — | Dataset supplying per-row scale factors; row count must equal the number of rows in the Define Table, and column names must include those specified by x_sf and/or y_sf. | |
| X-Scale Factor Column Name | x_sf | text | — | Name of the column in the Parameter Dataset whose values are used as X-axis scale factors; leave blank to skip X scaling. | |
| Y-Scale Factor Column Name | y_sf | text | — | Name of the column in the Parameter Dataset whose values are used as Y-axis scale factors; leave blank to skip Y scaling. | |
| Type Of Scaling | type_of_scaling | scalar | all | Controls which portion of each curve is scaled: ‘all’ scales every point, ‘offset’ offsets to the initial value before scaling, ‘initial_peak’ scales only points after the first peak, and ‘custom’ scales after user-supplied threshold values; defaults to ‘all’. | |
| Scale After X | x_after | text | — | Values after this value of X will be scaled. Values per curve can be specified by separating them using commas |
Outputs¶
| Label | ID | Type | Description |
|---|---|---|---|
| Define Table with Scaled Curves | define_table | define_table | Define Table with the same structure as the input but with curve X and/or Y values replaced by their scaled counterparts according to the chosen scaling mode. |
Disciplines¶
- data.curve.transform
- data.dataset.transform
Runnable example¶
A runnable example is registered for this worker. Open the example workflow on the d3VIEW canvas: /api/workflow/example?id=definetable_scale_curve_by_parameters
Auto-generated from transformation schema. Worker id: definetable_scale_curve_by_parameters. Schema hash: 0926210183c3. Hand-curated docs in workerexamples/ override this page when present.