This is a function that generates a reorder function intended for use as parameter <dim_name>_reorder
in a call to the function Start()
in the package 'startR'. This function complies with the input/output interface required by Start()
defined in the documentation for the parameter … of that function.
The applied reordering consists of a circular sort of the coordinate variable values, where any values beyond the limits specified in the parameters start
and end
is applied a modulus to fall in the specified range. This is useful for circular dimensions such as the Earth longitudes.