nd-safir.py: distinguish between 0 and None because 0 is used for uint8