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 last value will be retained so the timespan of the resulting GTS is the same as the original one.

Signature

Examples

NEWGTS 'test' RENAME 1000000 NaN NaN NaN 1.0 ADDVALUE 2000000 NaN NaN NaN 1.0 ADDVALUE 3000000 NaN NaN NaN 1.0 ADDVALUE 4000000 NaN NaN NaN 2.0 ADDVALUE 5000000 NaN NaN NaN 2.0 ADDVALUE 6000000 NaN NaN NaN 2.0 ADDVALUE 7000000 NaN NaN NaN 3.0 ADDVALUE 8000000 NaN NaN NaN 4.0 ADDVALUE 9000000 NaN NaN NaN 4.0 ADDVALUE 10000000 NaN NaN NaN 4.0 ADDVALUE COMPACT