def tropnights_calc(data):
    """
    Calculate number of tropical nights.

    Return days with minimum temperature not below 20 degrees C.

    Parameters
    ----------
    data: array
        1D-array of minimum temperatures timeseries in degrees Kelvin
    """
    tropnts = ((data > 293)).sum()
    return tropnts