Skip to content

Commit

Permalink
Force unit8 for canopy_cover_class band in mangroves product (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
tebadi authored Oct 11, 2024
1 parent 09c7ec3 commit bac430c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions odc/stats/plugins/mangroves.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def reduce(self, xx: xr.Dataset) -> xr.Dataset:
cover_type = keep_good_only(cover_type, good_data, nodata=NODATA)
cover_type.attrs["nodata"] = NODATA

cover_type = cover_type.astype(np.uint8)
cover_type = cover_type.to_dataset(name="canopy_cover_class")
# don't want the dimension spec from input but keep the info in case
if "spec" in cover_type.dims:
Expand Down

0 comments on commit bac430c

Please sign in to comment.