bordado.get_region#
- bordado.get_region(coordinates)[source]#
Get the bounding region of the given coordinates.
- Parameters:
- coordinates
tuple= (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.
- coordinates
- Returns:
- region
tuple= (W,E,S,N, …) The boundaries that contain the coordinates. The order of lower and upper boundaries returned follows the order of coordinates.
- region
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)