def calc_temp(delta_h, t_0, lapse):
    """
    Calculates atmospheric temperature assuming constant lapse rate
    
    Args
    
    delta_h - difference in geopotential heights between layers in m
    t_0 - base temperature of previous layer in K
    lapse - lapse rate in K/m 
    
    Return 
    
    temperature - float in units of K
    
    """

    return t_0 + lapse * delta_h