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.
- Returns
region (tuple = (W, E, S, N)) – The boundaries of a given region in Cartesian or geographic coordinates.
Examples
>>> coords = grid_coordinates((0, 1, -10, -6), shape=(10, 10)) >>> print(get_region(coords)) (0.0, 1.0, -10.0, -6.0)