verde.get_region#
- verde.get_region(coordinates)[source]#
Get the bounding region of the given coordinates.
- Parameters:
- coordinates
tuple
of
arrays
Arrays with the coordinates of each data point. Should be in the following order: (easting, northing, vertical, …). Only easting and northing will be used, all subsequent coordinates will be ignored.
- coordinates
- Returns:
- region
tuple
= (W
,E
,S
,N
) The boundaries of a given region in Cartesian or geographic coordinates.
- region
Examples
>>> coords = grid_coordinates((0, 1, -10, -6), shape=(10, 10)) >>> region = get_region(coords) >>> print(tuple(float(c) for c in region)) (0.0, 1.0, -10.0, -6.0)