raster_tools.clipping.envelope#
- raster_tools.clipping.envelope(feature, data_raster)[source]#
Clip the data raster using the bounds of the given feature.
This is the same as
clip()but the bounding box of the feature is used instead of the feature itself.- Parameters
- Returns
The resulting clipped raster with dimensions that match the bounding box of the feature.
- Return type