.. _auto_curves_getbyindex: *GET CURVE BY INDEX. USEFUL FOR EXTRACTING A CURVE FOR A COLLECTION OF CURVES USING THE ORDER.* =============================================================================================== Extracts a single curve from a collection of curves by its zero-based position index. If the index is not found, an optional default index is used as a fallback. Use this worker when you need to isolate one curve from an ordered curve group within a workflow. When to use ----------- Classification: **process**. Tagged: ``curve_extraction``, ``curve_group``, ``curves``, ``getbyindex``, ``index``, ``transformations``. Inputs ------ .. list-table:: :header-rows: 1 :widths: 20 20 20 20 20 20 * - Label - ID - Type - Default - Required - Description * - Curves - curves - vector - — - - Ordered collection of input curves (CurveGroup) from which a single curve will be selected; accepts multiple curves. * - Index - index - integer - 0 - - Zero-based integer index of the curve to extract from the collection; defaults to 0 (first curve). Also accepts a curve name string as a fallback lookup. * - Default Index if not found - default_index - scalar - — - - Fallback index to use when the primary index is not found in the collection; leave blank to return null on a miss. Outputs ------- .. list-table:: :header-rows: 1 :widths: 20 20 20 20 * - Label - ID - Type - Description * - curves_getbyindex_output_1 - curves_getbyindex_output_1 - vector - The single curve extracted from the input collection at the specified (or fallback) index. Disciplines ----------- - data.curve.pair Runnable example ---------------- A runnable example is registered for this worker. Open the example workflow on the d3VIEW canvas: `/api/workflow/example?id=curves_getbyindex `_ .. raw:: html

Auto-generated from transformation schema. Worker id: curves_getbyindex. Schema hash: 06cc5b7586aa. Hand-curated docs in workerexamples/ override this page when present.