Also looks like the control is not remembering the nodata values after processing map
Revised break detection routine when no color table is present
if breaks is None:
# need to intuit breaks
min_val = min(classes)
max_val = max(classes)
run = 1
while min_val + run in classes:
run += 1
is256 = run > 4 or len(classes) > 7
if is256:
breaks = [0, 75, 109, 187]
else:
breaks = [min_val + i for i in range(4)]
if max_val not in breaks and not is256:
nodata_vals.append(k)
classes.remove(k)
Improve break detection for SBS maps.
Also looks like the control is not remembering the nodata values after processing map
Revised break detection routine when no color table is present
https://github.com/rogerlew/wepppy/blob/master/wepppy/nodb/mods/baer/sbs_map.py