Loading

CLIP

gts

The CLIP function clips a Geo Time Series™, encoders or list thereof according to a series of limits. The limits are lists of pair containing the lower and upper timestamps used to clip. Each pair will generate a clipped GTS or encoder for each instance.

CLIP is available since version 1.2.0.

See also

Signatures

Examples

NOW 'now' STORE $now 4 d + 'nowPlus4' STORE $now 8 d + 'nowPlus8' STORE $now 12 d + 'nowPlus12' STORE // Create a new GTS NEWGTS 'test' RENAME // ADDS 12 values to the GTS separated by 1 day 0 11 <% 'indice' STORE $now $indice d + NaN NaN NaN $indice ADDVALUE %> FOR 'gts' STORE // CLIP $gts [ [ $now $nowPlus4 1 - ] [ $nowPlus4 $nowPlus8 1 - ] [ $nowPlus8 $nowPlus12 1 - ] ] CLIP