def range_to_level_window(min_value, max_value):
    """Convert min/max value range to level/window parameters."""
    window = max_value - min_value
    level = min_value + .5 * window
    return (level, window)