def get_altitude_from_level(level_number):
    """Get geopotential altitude from level number.

    Args:
        level_number (int): Number of level.

    Returns:
        float: Altitude in meters above mean sea level.

    """
    # Altitudes (heights above mean sea level) corresponding to barometric altitude levels, source:
    # https://www.ecmwf.int/en/forecasts/documentation-and-support/137-model-levels
    altitude_levels_all = [79301.79, 73721.58, 71115.75, 68618.43, 66210.99, 63890.03, 61651.77, 59492.5, 57408.61,
                           55396.62, 53453.2, 51575.15, 49767.41, 48048.7, 46416.22, 44881.17, 43440.23, 42085, 40808.05,
                           39602.76, 38463.25, 37384.22, 36360.94, 35389.15, 34465, 33585.02, 32746.04, 31945.53, 31177.59,
                           30438.54, 29726.69, 29040.48, 28378.46, 27739.29, 27121.74, 26524.63, 25946.9, 25387.55,
                           24845.63, 24320.28, 23810.67, 23316.04, 22835.68, 22368.91, 21915.16, 21473.98, 21045, 20627.87,
                           20222.24, 19827.95, 19443.55, 19068.35, 18701.27, 18341.27, 17987.41, 17638.78, 17294.53,
                           16953.83, 16616.09, 16281.1, 15948.85, 15619.3, 15292.44, 14968.24, 14646.68, 14327.75, 14011.41,
                           13697.65, 13386.45, 13077.79, 12771.64, 12467.99, 12166.81, 11868.08, 11571.79, 11277.92,
                           10986.7, 10696.22, 10405.61, 10114.89, 9824.08, 9533.2, 9242.26, 8951.3, 8660.32, 8369.35,
                           8078.41, 7787.51, 7496.68, 7205.93, 6915.29, 6624.76, 6334.38, 6044.15, 5754.1, 5464.6, 5176.77,
                           4892.26, 4612.58, 4338.77, 4071.8, 3812.53, 3561.7, 3319.94, 3087.75, 2865.54, 2653.58, 2452.04,
                           2260.99, 2080.41, 1910.19, 1750.14, 1600.04, 1459.58, 1328.43, 1206.21, 1092.54, 987, 889.17,
                           798.62, 714.94, 637.7, 566.49, 500.91, 440.58, 385.14, 334.22, 287.51, 244.68, 205.44, 169.5,
                           136.62, 106.54, 79.04, 53.92, 30.96, 10]

    return altitude_levels_all[level_number - 1]