Loading

LOCATIONS

gts geo

The LOCATIONS function consumes a Geo Time Series™ from the stack, extracts the locations of a Geo Time Series™, puts them in two lists (a list of latitudes and a list of longitudes) and pushes the two lists onto the stack.

LOCATIONS is available since version 1.0.0.

See also

Signatures

Examples

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 25900 2 ADDVALUE 1100 48.4313080 -4.4513690 26000 1 ADDVALUE // Returns a list of longitude and a list of latitude LOCATIONS

Examples

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, 25900, 2) ADDVALUE(A, 1100, 48.4313080, -4.4513690, 26000, 1) // Returns a list of longitude and a list of latitude return LOCATIONS(A)