Loading

op.and


op
Since v1.0.11
Available on all platforms
See also

To apply an op.and 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.and is applyied to the GTS in those classes, building only one result GTS for each class.

The op.and operation will applies AND at each tick on values of all the GTS belonging to the same class (in the order they are passed). The elevation and location are cleared. To produce a result, all GTS of a same class must have a value at a same tick.

If the first value found isn’t a boolean, all values produced will be false.

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.

Signature

Examples

[ [ NEWGTS "GTS1" RENAME { 'label0' '42' } RELABEL 10 NaN NaN NaN false ADDVALUE 20 NaN NaN NaN true ADDVALUE NEWGTS "GTS2" RENAME { 'label0' '53' } RELABEL 10 NaN NaN NaN true ADDVALUE 15 NaN NaN NaN false ADDVALUE 20 NaN NaN NaN true ADDVALUE ] [ NEWGTS "GTS3" RENAME { 'label0' '42' } RELABEL 10 NaN NaN NaN false ADDVALUE 20 NaN NaN NaN true ADDVALUE 30 NaN NaN NaN true ADDVALUE NEWGTS "GTS4" RENAME { 'label0' '53' } RELABEL 10 NaN NaN NaN true ADDVALUE 20 NaN NaN NaN true ADDVALUE NEWGTS "GTS5" RENAME { 'label0' '4253' } RELABEL 10 NaN NaN NaN false ADDVALUE 15 NaN NaN NaN false ADDVALUE 20 NaN NaN NaN true ADDVALUE ] [ 'label0' ] op.and