bordado.get_region

Contents

bordado.get_region#

bordado.get_region(coordinates)[source]#

Get the bounding region of the given coordinates.

Parameters:
coordinatestuple = (easting, northing, …)

Tuple of arrays with the coordinates of each point. Arrays can be Python lists. Arrays can be of any shape but must all have the same shape.

Returns:
regiontuple = (W, E, S, N, …)

The boundaries that contain the coordinates. The order of lower and upper boundaries returned follows the order of coordinates.

Examples

>>> get_region(([0, 0.5, 1], [-10, -8, -6]))
(0.0, 1.0, -10.0, -6.0)
>>> get_region(([0, 0.5, 1], [-10, -8, -6], [4, 10, 16]))
(0.0, 1.0, -10.0, -6.0, 4.0, 16.0)