PERFORM AN OFFSET FOLLOWED BY SCALE FOR X AND Y AS SPECIFIED BELOW¶
Applies an offset followed by a scale to both the X and Y axes of an input curve. For each axis, the offset is added first, then the result is multiplied by the scale factor. Use this worker for unit conversions, time-shifting, or amplitude normalisation of time-history curves.
When to use¶
Classification: process.
Tagged: curve_transform, offset, scale, time_history, x_offset, x_scale, y_offset, y_scale.
Inputs¶
| Label | ID | Type | Default | Required | Description |
|---|---|---|---|---|---|
| Curve To Be Scaled | curvetobescaled | vector | — | Input curve (X/Y vector pair) to be transformed; supply any time-history or XY curve — the offset and scale parameters are applied to this curve in-place. | |
| X Offset | x_offset | float | 0 | Scalar offset added to every X value before scaling (dimensionless or in the curve’s X units); default 0 leaves X values unchanged prior to scaling. | |
| Y Offset | y_offset | float | 0 | Scalar offset added to every Y value before scaling (dimensionless or in the curve’s Y units); default 0 leaves Y values unchanged prior to scaling. | |
| X Scale | x_scale | float | 1 | Multiplicative scale factor applied to each (X + x_offset) value; default 1.0 produces no scaling — set to e.g. 0.001 to convert milliseconds to seconds. | |
| Y Scale | y_scale | float | 1 | Multiplicative scale factor applied to each (Y + y_offset) value; default 1.0 produces no scaling — set to e.g. 9.81 to convert g to m/s². |
Outputs¶
| Label | ID | Type | Description |
|---|---|---|---|
| curve_offsetandscale_output_1 | curve_offsetandscale_output_1 | vector | Transformed output curve (X/Y vector pair) where every point satisfies X_out = (X_in + x_offset) × x_scale and Y_out = (Y_in + y_offset) × y_scale. |
Disciplines¶
- data.curve.transform
Runnable example¶
A runnable example is registered for this worker. Open the example workflow on the d3VIEW canvas: /api/workflow/example?id=curve_offsetandscale
Auto-generated from transformation schema. Worker id: curve_offsetandscale. Schema hash: 58069abec076. Hand-curated docs in workerexamples/ override this page when present.