def in_between(xmin, xmax, val):
    """

    return a selection of the values in val
    that satisfy:

    xmin <= val <= xmax

    Returns
    -------
    numpy array of True and False

    """
    return (xmin <= val) & (val <= xmax)