bordado.check_region#
- bordado.check_region(region)[source]#
Check that the given region is valid.
A region is a bounding box for n-dimensional coordinates. There should be an even number of elements and lower boundaries should not be larger than upper boundaries.
- Parameters:
- region
tuple
= (W
,E
,S
,N
, …) The boundaries of a given region in Cartesian or geographic coordinates. Should have a lower and an upper boundary for each dimension of the coordinate system.
- region
- Raises:
ValueError
If the region doesn’t have even number of entries and any lower boundary is larger than the upper boundary.