Assume an ndarray with ndim==2 has a single band.