Skip to main content

Documentation for ScryLab v0.7.1

Changelogs

Cut & Mask

Two chains of operations come up again and again.

Keep only parts of a signal. Create Mask or Create Period Mask builds a signal of zeros and ones. Plot it to check the regions. Apply Mask then blanks everything outside them, and Remove Gaps joins what is left if you need one continuous piece.

Evaluate cycles, laps or steps one by one. Counter from Trigger or Segments from GPS numbers the segments. Segment Metric reads one value per segment, Overlay Segments puts all segments on top of each other, and Split by Segments turns each segment into a data source of its own.

Apply Mask

Keeps the samples where a 0/1 mask is 1; everything else becomes a NaN gap, the x-axis stays. Make the mask with Create Mask or Create Period Mask, or use any 0/1 signal. Append Remove Gaps to compress the gaps away.

Added as a step to the workflow of the signal it is applied to. Additional input: Mask Signal. Can also be applied to a whole data source.

Counter from Trigger

Counts the edges of a trigger signal into a staircase 0, 1, 2, … – e.g. a lap beacon pulse becomes the lap number. Set the threshold and the edge direction. Feed the result into Split by Segments to get one source per lap.

Creates a new signal from each selected signal.

SettingDescriptionDefault
ThresholdAn edge is counted when the signal crosses this value.0.5

More under Advanced: Edge.

Create Mask

Creates a 0/1 signal from a comparison, e.g. 1 where speed ≥ 50. Plot it to check the regions, then use it in Apply Mask to keep only those regions of other signals.

Creates a new signal from each selected signal.

SettingDescriptionDefault
ThresholdThe value samples are compared against.0
Mask = 1 where value isSamples that satisfy this comparison against the threshold become 1, all others 0.< · <= · > · >=

Create Period Mask

Creates a 0/1 mask covering only the complete oscillation periods of a signal, cut at the crossing level. Periods with a peak well below that of their neighbors are dropped. Plot the mask to see which periods survive, then use it in Apply Mask.

Creates a new signal from each selected signal.

SettingDescriptionDefault
Crossing LevelPeriods are cut where the signal crosses this value (0 = zero crossings; set the offset for signals oscillating around a working point).0
Period starts onWhether a period starts when the signal crosses the level upwards (rising) or downwards (falling).rising · falling
Min. PeakQuality filter: a period is kept only if BOTH its positive and negative peak (relative to the level) reach this fraction of the typical peak of its NEIGHBORING periods – a single outlier can’t raise the bar, and sections with a different amplitude (another speed) get their own. Clearly smaller periods (settle-in, noise) are never counted as typical. 0 disables the filter.90 % (0–100)
Skip First PeriodsDiscard this many full periods at the start (settle-in phase).0
Skip Last PeriodsDiscard this many full periods at the end (settle-out phase).0
Min. Period DurationDiscard ‘periods’ shorter than this (x-axis units) – debounces spurious extra crossings from residual noise. 0 disables the check.0

How periods are found

A period runs from one crossing of the Crossing Level to the next crossing in the same direction. For a signal that oscillates around a working point instead of zero, set the level to that value.

Which periods are kept

Min. Peak compares each period with its neighbors: both its positive and its negative peak must reach the given share of the typical peak of the surrounding periods. A single large outlier therefore does not raise the bar for the others, and a section with another amplitude, for example at another speed, is judged on its own. Settling-in and noise never count as typical. With 0 the check is off.

Skip First Periods and Skip Last Periods drop periods at the start and at the end, whatever their size. Min. Period Duration removes short periods that come from extra crossings in residual noise.

Good to know

  • Noise around the crossing level creates extra crossings. Lowpass the signal first, or set Min. Period Duration.
  • Plot the mask below the signal to check which periods were kept before you use it in Apply Mask.

Crop

Keeps only the samples inside an x-range, or removes that range instead (Invert). Click or move a range in the plot to fill in start and end. To crop a whole measurement at once, crop the source instead.

Added as a step to the workflow of the signal it is applied to. Can also be applied to a whole data source.

SettingDescriptionDefault
X-Axis RangeThe [lo, hi] range on the x-axis – x values, or date/times for a dated signal. Move or click a range in a plot to auto-fill.–
Invert (remove range instead of keeping it)If checked, the selected range is removed and everything outside is kept.off

Overlay Segments

Puts every segment (e.g. every position step of a test profile) on a common x-axis – seconds since the segment’s start, or its phase 0…1 – in one signal. Binned Average over it gives the mean response with its band.

Creates a new signal from: Signal, Segment Signal.

SettingDescriptionDefault
X axistime: seconds since the segment’s start – for step responses (rise time, overshoot stay comparable). phase: 0…1 over each segment – for periodic cycles of different length.time · phase
Only non-zero segmentsIgnore segments whose value is 0 – the ‘off’ part of a 0/1 mask, or a counter before its first trigger.on

Good to know

  • With time on the x-axis, rise time and overshoot of a step response stay in seconds and can be compared between segments. With phase, cycles of different length are stretched to the same width.
  • The segments are separated by gaps and keep their original time, so a cursor in a time plot shows which segment a point belongs to.
  • Binned Average over the result gives the mean response and its band.

Remove Gaps

Removes gaps from the signal: NaN samples are dropped and abnormally large time jumps are closed by shifting the later samples together. Use after Apply Mask to compress the masked-out regions away.

Added as a step to the workflow of the signal it is applied to.

Good to know

After this step the time axis is compressed and no longer matches the recording. A time read off the result is not the time at which something happened. Read values that depend on the time before this step, and use it last: typically after Apply Mask, to join the sections that were kept, for example for a spectrum.

XY curves and point clouds are refused, because their x-axis has no order to close gaps in.

Segments from GPS

Detects laps from GPS position: a new segment starts whenever the track re-enters the radius around its start point. The result is a staircase 0, 1, 2, … – feed it into Split by Segments to get one source per lap.

Creates a new signal from: Longitude, Latitude.

SettingDescriptionDefault
RadiusA new lap starts when the track re-enters this radius around the start point (first sample) after having left it.20 m