def relative_levels(levels, station):
    """Converts a list of level data to a list of relative level data for a given station"""

    if not station.typical_range_consistent():
        return None
    else:
        min, max = station.typical_range
        return [(i - min)/(max - min) for i in levels]