Loading

FILLNEXT


bucketize gts
Since v1.0.0
Available on all platforms
See also

The FILLNEXT function fills gaps in a bucketized Geo Time Series™ instance by re-using the value/location/elevation of the next 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.

Signature

Examples

// Create a new bucketized GTS with 9 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 FILLNEXT to fill the gaps FILLNEXT // And then sort to see the result SORT