Loading

op.gt

op

To apply an op.gt operation, N parameters are on top of the stack: N-1 Geo Time Series™ lists and one labels List. According to those labels, it produces multiple equivalence classes from the GTS inside those N-1 lists (if they match the same labels as the equivalence class). Then op.gt is applyied to the GTS in those classes, building only one result GTS for each class.

The op.gt operation will check at each tick if the value of the current GTS is greater than the value of the next GTS. In a recursive way, it will run throw all the values of all the GTS belonging to the same class. If one GTS doesn’t have a value for the current tick the result for this tick is false.

The elevation and location are cleared.

The name of the resulting GTS is the one of the last GTS of the equivalence class. The labels kept are the one of the equivalence class.

op.gt is available since version 1.0.11.

See also

Signatures

Examples

[ [ NEWGTS "GTS1" RENAME { 'label0' '42' } RELABEL 10 NaN NaN NaN 46 ADDVALUE 20 NaN NaN NaN 5 ADDVALUE NEWGTS "GTS2" RENAME { 'label0' '53' } RELABEL 10 NaN NaN NaN 2.0 ADDVALUE 15 NaN NaN NaN 44 ADDVALUE 20 NaN NaN NaN 42.0 ADDVALUE ] [ NEWGTS "GTS3" RENAME { 'label0' '42' } RELABEL 10 NaN NaN NaN 42 ADDVALUE 20 NaN NaN NaN 5 ADDVALUE 30 NaN NaN NaN -5 ADDVALUE NEWGTS "GTS4" RENAME { 'label0' '53' } RELABEL 10 NaN NaN NaN 46.5 ADDVALUE 20 NaN NaN NaN 42.0 ADDVALUE NEWGTS "GTS5" RENAME { 'label0' '4253' } RELABEL 10 NaN NaN NaN -42 ADDVALUE 15 NaN NaN NaN 44 ADDVALUE 20 NaN NaN NaN 42 ADDVALUE ] [ 'label0' ] op.gt ] APPLY