To apply an
op.sub 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.sub is applyied to the GTS in those classes, building only one result GTS for each class.
The sub operator can only operate on equivalence classes which have exactly two GTS. It will substract at each tick the value of the first GTS by the value of the second GTS. To produce a result, both GTS of a same class must have a value at a same tick.
The type of the resulting GTS will be determined by the first non null value. It only operates on LONG and DOUBLE.
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.