CONVERT A SINGLE CURVE INTO A DATASET¶
Converts a single curve into a tabular dataset in either XY or Matrix format. In XY mode the curve’s x- and y-arrays become two columns; in Matrix mode the y-values are reshaped into a user-defined number of columns. Use this worker when downstream nodes require a dataset rather than a curve object.
When to use¶
Classification: process.
Tagged: conversion, curve, dataset, matrix, reshape, transform, xy.
Inputs¶
| Label | ID | Type | Default | Required | Description |
|---|---|---|---|---|---|
| Curve | curve | vector | — | The source curve (x/y vector pair) to be converted into a dataset; accepts any d3VIEW curve object. | |
| type | type | list | xy | Output layout: ‘xy’ produces a two-column dataset with one column per axis; ‘matrix’ reshapes the curve y-values into multiple columns. Defaults to ‘xy’. | |
| Number Of Columns For Matrix | matrix_cols | scalar | 2 | Number of columns to use when splitting curve y-values in Matrix mode (integer ≥ 1); ignored when type is ‘xy’. Defaults to 2. | |
| Matrix Col Prefix | matrix_col_prefix | scalar | col_ | String prefix applied to each generated column name in Matrix mode (e.g. ‘col_’ yields col_0, col_1, …); ignored when type is ‘xy’. Defaults to ‘col_’. |
Outputs¶
| Label | ID | Type | Description |
|---|---|---|---|
| Matrix | curve_to_dataset_output_1 | dataset | Tabular dataset produced from the input curve; contains two columns (x, y) in XY mode, or N columns of reshaped y-values in Matrix 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=curve_to_dataset
Auto-generated from transformation schema. Worker id: curve_to_dataset. Schema hash: 8c3650f162b9. Hand-curated docs in workerexamples/ override this page when present.