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)
Examples using verde.get_region
#
Mask grid points by convex hull
Mask grid points by convex hull
Gridding with a cubic interpolator
Gridding with a cubic interpolator
Mask grid points by distance
Gridding with a nearest-neighbors interpolator
Gridding with a nearest-neighbors interpolator
Gridding with a linear interpolator
Gridding with a linear interpolator
Gridding with splines
Gridding with splines (cross-validated)
Gridding with splines (cross-validated)
Gridding with splines and weights
Gridding with splines and weights
Trends in vector data
Gridding 2D vectors
Chaining Operations
Grid Coordinates
Evaluating Performance
Model Selection
Geographic Coordinates
Vector Data
Using Weights