MACROMAPPER
mapperMACROMAPPER
converts a macro into a mapper which can be used with the MAP
framework.
For each tick in the mapped Geo Time Series™, the macro will be called with a list containing the following elements on the stack:
[tick_of_computation,[gts_classes],[label_maps],[ticks],[latitudes],[longitudes],[elevations],[values]]
After each call the macro is expected to leave on the stack a list with the following elements:
[tick, latitude, longitude, elevation, value]
MACROMAPPER
can also create a multivariate mapper, that is, a mapper that outputs multiple results. To do this, macro calls shall leave on the stack a map:
{
'result_1': [tick, latitude, longitude, elevation, value],
'result_2': [tick, latitude, longitude, elevation, value],
...
}
When using a multivariate mapper with MAP, each input GTS produces as much output GTS in a list, whose classnames are the keys found in the map left by the macro call on the stack.