def get_rpg_file_type(header):
    """Find level and version of RPG cloud radar binary file.

    Args:
        header (dict): Header of the radar file containing *file_code* key.

    Returns:
        tuple: 2-element tuple containing Level (0 or 1) and Version (2 or 3).

    Raises:
        RuntimeError: Unknown file type.

    """
    file_code = header['file_code']
    if file_code == 789346:
        return 0, 2
    elif file_code == 889346:
        return 0, 3
    elif file_code == 789347:
        return 1, 2
    elif file_code == 889347:
        return 1, 3
    raise RuntimeError('Unknown RPG binary file.')
