ubarsc / python-fmask

A set of command line utilities and Python modules that implement the ‘fmask’ algorithm
https://www.pythonfmask.org
GNU General Public License v3.0
74 stars 21 forks source link

convert from bool to uint8 before writing output #74

Closed gillins closed 4 months ago

gillins commented 4 months ago

Older GDAL versions appeared to convert bool arrays to uint8 before writing. This no longer works happens and as a result the code reports an error as HFA does not support bools.

This fix just does the conversion to uint8 before writing.