verde.get_region

verde.get_region#

verde.get_region(coordinates)[source]#

Get the bounding region of the given coordinates.

Parameters:
coordinatestuple 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:
regiontuple = (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)

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

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

Gridding with splines (cross-validated)

Gridding with splines (cross-validated)

Gridding with splines and weights

Gridding with splines and weights

Trends in vector data

Trends in vector data

Gridding 2D vectors

Gridding 2D vectors

Chaining Operations

Chaining Operations

Grid Coordinates

Grid Coordinates

Evaluating Performance

Evaluating Performance

Model Selection

Model Selection

Geographic Coordinates

Geographic Coordinates

Vector Data

Vector Data

Using Weights

Using Weights