Loading

COMPACT


gts
Since v1.0.0
Available on all platforms

The COMPACT function expects a Geo Time Series™ or a LIST of GTS on top of the stack. For each GTS instance it reads, it will produce a GTS whith fewer values, by removing measurements which have the same value, location and elevation as the previous one. The first tick will be the kept, then ticks with value or position change will be kept. The last tick from the original gts will be copied, in order to keep the same LASTTICK.

Signature

Examples

NEWGTS 'test' RENAME 4000000 NaN NaN NaN 'start' ADDVALUE 5000000 NaN NaN NaN 'start' ADDVALUE 6000000 NaN NaN NaN 'start' ADDVALUE 7000000 NaN NaN NaN 'run' ADDVALUE 8000000 NaN NaN NaN 'run' ADDVALUE 8500000 NaN NaN NaN 'fail' ADDVALUE 9000000 NaN NaN NaN 'run' ADDVALUE 10000000 NaN NaN NaN 'end' ADDVALUE 11000000 NaN NaN NaN 'end' ADDVALUE // will be kept too COMPACT