def _hypsometric_values(k):
    result = [0, 0, 0, 255]
    if k > 63:
        result[0] = 255
        result[1] = 255 - (k - 64) * 4
    else:
        result[1] = 255
        result[0] = k * 4

    return numpy.array(result)
dataset/ETHPy150Open aheadley/pynemap/pynemap.py/_hypsometric_values/original