def extract_qa_bits(band_data, bit_location):
    """Get bit information from given position.
    Args:
        band_data (numpy.ma.masked_array) - The QA Raster Data
        bit_location (int) - The band bit value
    """
    return band_data & (1 << bit_location)