def apply_snr_threshold(
        tbl,
        ccf_cube,
        ccf_files,
        snr_key='EXTSN035',
        snr_min=1):
    """
    Apply SNR treshold to CCFs
    Args:
        tbl (astropy.Table.table): table to modify
        ccf_cube (array): 3D array with all ccfs for all orders for all files
        ccf_files (list of str): list of ccf file names
        snr_key (str): key giving SNR in table
        snr_min (float): minimum SNR value to keep
    Returns:
        Updated tbl, ccf_cube, and ccf_files
    """
    keep = tbl['EXTSN035'] > snr_min
    tbl = tbl[keep]
    ccf_cube = ccf_cube[:, :, keep]
    ccf_files = ccf_files[keep]

    return tbl, ccf_cube, ccf_files