raster_sort

rubin_sim.scheduler.utils.raster_sort(x0, order=['x', 'y'], xbin=1.0)

XXXX–depriciated, use tsp instead.

Do a sort to scan a grid up and down. Simple starting guess to traveling salesman.

Parameters:
x0array
orderlist

Keys for the order x0 should be sorted in.

xbinfloat (1.)

The bin_size to round off the first coordinate into

Returns:
array sorted so that it rasters up and down.