def aoi(self, **kwargs):
""" Subsets the Image by the given bounds
kwargs:
bbox: optional. A bounding box array [minx, miny, maxx, maxy]
wkt: optional. A WKT geometry string
geojson: optional. A GeoJSON geometry dictionary
Returns:
image (ndarray): an image instance
"""
g = self._parse_geoms(**kwargs)
if g is None:
return self
else:
return self[g]
评论列表
文章目录