def get_alert(paramalertLS, paramalertLQ, parampopLS, parampopLQ,
              hazbinLS=[1., 10., 100.], popbinLS=[100, 1000, 10000],
              hazbinLQ=[10., 100., 1000.], popbinLQ=[100, 1000, 10000]):
    """
    Get alert levels

    Args:
        paramalertLS (float): Hazard statistic of preferred landslide model
        paramalertLQ (float): Hazard statistic of preferred liquefaction model
        parampopLS (float): Exposure statistic of preferred landslide model
        parampopLQ (float): Exposure statistic of preferred liquefaction model
        hazbinLS (list): 3 element list of bin edges for landslide
            hazard alert between Green and Yellow, Yellow and Orange, and
            Orange and Red.
        popbinLS (list): same as above but for population exposure
        hazbinLQ (list): 3 element list of bin edges for liquefaction hazard
            alert between Green and Yellow, Yellow and Orange, and Orange
            and Red.
        popbinLQ (list): same as above but for population exposure

    Returns:
        Returns:
            tuple: (alertLS, popalertLS, alertLQ, popalertLQ) where:
                * alertLS: the landslide hazard alert level (str)
                * popalertLS: the landslide population alert level (str)
                * alertLQ: the liquefaction hazard alert level (str)
                * popalertLQ: the liquefaction population alert level (str)

    """
    if paramalertLS is None:
        alertLS = None
    elif paramalertLS < hazbinLS[0]:
        alertLS = 'green'
    elif paramalertLS >= hazbinLS[0] and paramalertLS < hazbinLS[1]:
        alertLS = 'yellow'
    elif paramalertLS >= hazbinLS[1] and paramalertLS < hazbinLS[2]:
        alertLS = 'orange'
    elif paramalertLS > hazbinLS[2]:
        alertLS = 'red'
    else:
        alertLS = None

    if parampopLS is None:
        popalertLS = None
    elif parampopLS < popbinLS[0]:
        popalertLS = 'green'
    elif parampopLS >= popbinLS[0] and parampopLS < popbinLS[1]:
        popalertLS = 'yellow'
    elif parampopLS >= popbinLS[1] and parampopLS < popbinLS[2]:
        popalertLS = 'orange'
    elif parampopLS > popbinLS[2]:
        popalertLS = 'red'
    else:
        popalertLS = None

    if paramalertLQ is None:
        alertLQ = None
    elif paramalertLQ < hazbinLQ[0]:
        alertLQ = 'green'
    elif paramalertLQ >= hazbinLQ[0] and paramalertLQ < hazbinLQ[1]:
        alertLQ = 'yellow'
    elif paramalertLQ >= hazbinLQ[1] and paramalertLQ < hazbinLQ[2]:
        alertLQ = 'orange'
    elif paramalertLQ > hazbinLQ[2]:
        alertLQ = 'red'
    else:
        alertLQ = None

    if parampopLQ is None:
        popalertLQ = None
    elif parampopLQ < popbinLQ[0]:
        popalertLQ = 'green'
    elif parampopLQ >= popbinLQ[0] and parampopLQ < popbinLQ[1]:
        popalertLQ = 'yellow'
    elif parampopLQ >= popbinLQ[1] and parampopLQ < popbinLQ[2]:
        popalertLQ = 'orange'
    elif parampopLQ > popbinLQ[2]:
        popalertLQ = 'red'
    else:
        popalertLQ = None

    return alertLS, popalertLS, alertLQ, popalertLQ