def tmax(a, upperlimit=None, axis=0, inclusive=True):
    a, axis = _chk_asarray(a, axis)
    am = trima(a, (None, upperlimit), (False, inclusive))
    return ma.maximum.reduce(am, axis)
Compute the trimmed maximum
dataset/ETHPy150Open scipy/scipy/scipy/stats/mstats_basic.py/tmax