Loading

ELEVATIONS

gts geo

The ELEVATIONS function consumes a Geo Time Series™ or a list thereof from the stack, extracts its elevations, puts them in a list and pushes the list onto the stack.

ELEVATIONS is available since version 1.0.0.

See also

Signatures

Examples

// Create a new GTS with ten data points with elevations NEWGTS 100 48.4313071 -4.4513631 25100 10 ADDVALUE 200 48.4313072 -4.4513632 25200 9 ADDVALUE 300 48.4313073 -4.4513633 25300 8 ADDVALUE 400 48.4313074 -4.4513634 25400 7 ADDVALUE 500 48.4313075 -4.4513635 25500 6 ADDVALUE 700 48.4313076 -4.4513636 25600 5 ADDVALUE 800 48.4313077 -4.4513637 25700 4 ADDVALUE 900 48.4313078 -4.4513638 25800 3 ADDVALUE 1000 48.4313079 -4.4513639 NaN 2 ADDVALUE 1100 48.4313080 -4.4513690 26000 1 ADDVALUE // Returns the list of elevations ELEVATIONS

Examples

// Create a new GTS with ten data points with elevations A = NEWGTS() ADDVALUE(A, 100, 48.4313071, -4.4513631, 25100, 10) ADDVALUE(A, 200, 48.4313072, -4.4513632, 25200, 9) ADDVALUE(A, 300, 48.4313073, -4.4513633, 25300, 8) ADDVALUE(A, 400, 48.4313074, -4.4513634, 25400, 7) ADDVALUE(A, 500, 48.4313075, -4.4513635, 25500, 6) ADDVALUE(A, 700, 48.4313076, -4.4513636, 25600, 5) ADDVALUE(A, 800, 48.4313077, -4.4513637, 25700, 4) ADDVALUE(A, 900, 48.4313078, -4.4513638, 25800, 3) ADDVALUE(A, 1000, 48.4313079, -4.4513639, NaN, 2) ADDVALUE(A, 1100, 48.4313080, -4.4513690, 26000, 1) // Returns the list of the elevation return ELEVATIONS(A)