def check_temperature(Tpp, Tmax = 0.0, Tmin = -10.0):
    """
    Sets  the precipitation temperature and snow temperature.

    Args:
        Tpp: A numpy array of temperature, use dew point temperature
            if available [degrees C].

        Tmax: Thresholds the max temperature of the snow [degrees C].

        Tmin: Minimum temperature that the precipitation temperature [degrees C].

    Returns:
        tuple:
           - **Tpp** (*numpy.array*) - Modified precipitation temperature that
                is thresholded with a minimum set by tmin.

           - **tsnow** (*numpy.array*) - Temperature of the surface of the snow
                set by the precipitation temperature and thresholded by tmax where
                tsnow > tmax = tmax.

    """

    Tpp[Tpp < Tmin] = Tmin

    tsnow = Tpp.copy()
    tsnow[Tpp > Tmax] = Tmax

    return Tpp, tsnow