Loading

ATINDEX


gts
Since v1.0.0
Available on all platforms
See also

The ATINDEX function consumes a Geo Time Series™ or a list thereof from the stack, looks at its index-th point and put on the stack a list with the timestamp, longitude, latitude, elevation and value for the index-th point of the GTS.

Since 2.1, the index can be negative. In this case the effective index is index + size of the GTS.

Signature

Examples

// Create a new GTS with ten values NEWGTS 'test' RENAME { 'label0' '42' 'label1' 'foo' } RELABEL 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 // Extract values with the VALUES funtion, put them in a list and push it onto the stack 4 ATINDEX