def getQaMask(img):
    """Gets the BQA quality band as boolean layer.

    1 indicates a good pixel and 0 indicates a bad pixel.

    Args:
        img: An ee.Image originating from msslib.getCol().

    Returns:
        A image with one boolean band named BQA_mask.
    """
    return img.select('BQA').eq(32).rename('BQA_mask')