def get_global_params(args, CLI, sm_par=None, numax=None, lower_ps=None, upper_ps=None,
                      width=1.0, dnu=None, smooth_ps=2.5, threshold=1.0, n_peaks=5, 
                      clip_ech=True, clip_value=None, smooth_ech=None, interp_ech=False, 
                      lower_ech=None, upper_ech=None, n_across=50, n_down=5,):
    """
    Get the parameters relevant for finding global asteroseismic parameters numax and dnu.

    Parameters
    ----------
    args : argparse.Namespace
        the command line arguments
    sm_par : float
        Gaussian filter width for determining smoothed numax (values are typically between 1-4)
    numax : float
        guess for numax
    lower_ps : float
        lower bound of power excess (in muHz). Default value is `None`.
    upper_ps : float
        upper bound of power excess (in muHz). Default value is `None`.
    width : float
        fractional width to use for power excess centerd on numax. Default value is `1.0`.
    smooth_ps : float
        box filter [in muHz] for PS smoothing before calculating ACF. Default value is `1.5`.
    threshold : float
        fractional width of FWHM to use in ACF for later iterations. Default value is `1.0`.
    n_peaks : int
        the number of peaks to select. Default value is `10`.
    lower_ech : float
        lower bound of folded PS (in muHz) to 'whiten' mixed modes. Default value is `None`.
    upper_ech : float
        upper bound of folded PS (in muHz) to 'whiten' mixed modes. Default value is `None`.
    clip : bool
        if true will set the minimum frequency value of the echelle plot to `clip_value`. Default value is `True`.
    clip_value : float
        the minimum frequency of the echelle plot. Default value is `0.0`.
    smooth_ech : float
        option to smooth the output of the echelle plot
    interp_ech : bool
        turns on the bilinear smoothing in echelle plot
    n_across : int
        x-axis resolution on the echelle diagram. Default value is `50`. (NOT CURRENTLY IMPLEMENTED YET)
    n_down : int
        how many radial orders to plot on the echelle diagram. Default value is `5`. (NOT CURRENTLY IMPLEMENTED YET)

    Returns
    -------
    args : argparse.Namespace
        the updated command line arguments
    args.globe : Dict[str,object]
        the parameters relevant for determining the global parameters routine

    """
    if CLI:
        globe = {
            'sm_par': args.sm_par,
            'width': args.width,
            'smooth_ps': args.smooth_ps,
            'threshold': args.threshold,
            'n_peaks': args.n_peaks,
            'clip_ech': args.clip_ech,
            'clip_value': args.clip_value,
            'smooth_ech': args.smooth_ech,
            'interp_ech': args.interp_ech,
            'n_across': args.n_across,
            'n_down': args.n_down,
        }
    else:
        globe = {
            'sm_par': sm_par,
            'width': width,
            'smooth_ps': smooth_ps,
            'threshold': threshold,
            'n_peaks': n_peaks,
            'clip_ech': clip_ech,
            'clip_value': clip_value,
            'smooth_ech': smooth_ech,
            'interp_ech': interp_ech,
            'n_across': n_across,
            'n_down': n_down,
        }
    args.globe = globe

    return args