Raise 'Invalid band index' for values <= 0