def find_v_max_j_max_from_data(a_einstein_nnz, cr_coefficients_nnz):
    """
    Find the v_max and j_max from the Einstien and collisional coefficients data

    The coeffients are for a two quantum number system (v,j).

    :param tuple a_einstein_nnz: The Einstien coefficients for the transitions
     provided as numpy arrays. (See DataSetRaw.A_info_nnz)
    :param tuple cr_coefficients_nnz: The collisional coeffieints for the
     transitions. (See DataSetRaw.collision_rates_info_nnz)
    :return: tuple: v_max, j_max
    """
    v_nnz, j_nnz, vp_nnz, jp_nnz, a_nnz = a_einstein_nnz
    v_max_a = max(v_nnz.max(), vp_nnz.max())
    j_max_a = max(j_nnz.max(), jp_nnz.max())
    (v_nnz, j_nnz), (vp_nnz, jp_nnz), unique_nnz, cr_nnz = cr_coefficients_nnz
    v_max_cr = max(v_nnz.max(), vp_nnz.max())
    j_max_cr = max(j_nnz.max(), jp_nnz.max())
    return max(v_max_a, v_max_cr), max(j_max_a, j_max_cr)
