Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 17, 2023
1 parent 169ec7a commit 74beb38
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions odc/geo/_xr_interop.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def assign_crs(

def crop(xx: XrT, poly: Geometry, mask: bool = True, all_touched: bool = True) -> XrT:
"""
Crops and optionally mask an xr.Dataset or xr.DataArray (``xx``) to
Crops and optionally mask an xr.Dataset or xr.DataArray (``xx``) to
the spatial extent of a geometry (``poly``).
:param xx:
Expand All @@ -257,12 +257,12 @@ def crop(xx: XrT, poly: Geometry, mask: bool = True, all_touched: bool = True) -
Geometry shape used to crop ``xx``.
:param poly:
Whether to mask out pixels outside of the rasterized extent of
Whether to mask out pixels outside of the rasterized extent of
``poly``.
:param all_touched:
If ``True``, all pixels touched by ``poly`` will remain unmasked.
If ``False``, only pixels whose center is within the polygon or
If ``False``, only pixels whose center is within the polygon or
that are selected by Bresenham's line algorithm will remain unmasked.
:return:
Expand Down Expand Up @@ -821,7 +821,7 @@ def to_rgba(
vmax: Optional[float] = None,
) -> xarray.DataArray:
return to_rgba(self._xx, bands=bands, vmin=vmin, vmax=vmax)

crop = _wrap_op(crop)

if have.rasterio:
Expand Down

0 comments on commit 74beb38

Please sign in to comment.