bucketize gts

The FILLPREVIOUS function fills gaps in a bucketized Geo Time Series™ instance by re-using the value/location/elevation of the previous non empty bucket to fill each empty bucket. It expects a GTS or a list thereof on the top of the stack.

This function has no effect on non bucketized GTS instances.

FILLPREVIOUS is available since version 1.0.0.

See also



// Create a new bucketized GTS with 10 buckets but only five values NEWGTS 100 NaN NaN NaN 10 ADDVALUE 200 NaN NaN NaN 9 ADDVALUE 300 NaN NaN NaN 8 ADDVALUE 400 NaN NaN NaN 7 ADDVALUE 500 NaN NaN NaN 6 ADDVALUE [ SWAP bucketizer.mean 500 50 0 ] BUCKETIZE // And we apply FILLPREVIOUS to fill the gaps FILLPREVIOUS // And then sort to see the result SORT