def mag_cut(mag, low, high):
    """
    Define a high and low value and flag the
    values that fall within those boundaries
    """
    isGood = 0
    if mag <= high and mag >= low:
        isGood = 1
    return isGood