Closed perrygeo closed 9 years ago
@sgillies @perrygeo question: if for some reason we are dealing with / we want to deal with uint16 imagery, does the valid data value then become np.iiinfo(np.uint16).max? ie, instead of hardcoding 255, should we do:
uint16
np.iiinfo(np.uint16).max
255
np.iinfo(<input>.dtype).max
like: https://github.com/mapbox/nodata/blob/master/nodata/alphamask.py#L55 ish?
:+1: sounds good
@sgillies @perrygeo question: if for some reason we are dealing with / we want to deal with
uint16
imagery, does the valid data value then becomenp.iiinfo(np.uint16).max
? ie, instead of hardcoding255
, should we do:like: https://github.com/mapbox/nodata/blob/master/nodata/alphamask.py#L55 ish?