When NBEAMS=3 a triple beam map is constructed where the central beam is the difference between the central beam and the average of the positions a chop distance away on either side.
All pixels off the edge of the image are assumed to have flux 0 and variance 0.
Bad pixels are assumed to be equivalent to flux of 0 and variance 0, although for the triple beam image a bad pixel is retained if it coincide with the middle beam position.
SURF Programming Interface