Loading

ATBUCKET

bucketize gts

The ATBUCKET function consumes a bucketized GTS from the stack, looks at its index-th bucket and puts on the stack a list with the timestamp, latitude, longitude, elevation and value for this bucket.

ATBUCKET is available since version 1.0.0.

See also

Signatures

Examples

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 700 NaN NaN NaN 5 ADDVALUE 800 NaN NaN NaN 4 ADDVALUE 900 NaN NaN NaN 3 ADDVALUE 1000 NaN NaN NaN 2 ADDVALUE 1100 NaN NaN NaN 1 ADDVALUE // And bucketize it with 5 buckets [ SWAP bucketizer.max 0 0 5 ] BUCKETIZE 0 GET // Getting the single gts of the list 4 ATBUCKET