geoutils.Raster.outside_image

geoutils.Raster.outside_image#

Raster.outside_image(xi, yj, index=True)#

Check whether a given point falls outside the bounds of the raster.

Parameters:
  • xi (ArrayLike) – Indices (or coordinates) of x direction to check.

  • yj (ArrayLike) – Indices (or coordinates) of y direction to check.

  • index (bool) – Interpret ij as raster indices (default is True). If False, assumes ij is coordinates.

Returns is_outside:

True if ij is outside the bounds.

Return type:

bool