"""
qvp.config
==========
QVP Configuration

    get_metadata
    get_plot_values
    get_colorbar_titles
    get_field_titles

"""

from .default_config import _DEFAULT_METADATA, _DEFAULT_PLOT_VALUES, _DEFAULT_FIELD_PARAMETERS


def get_metadata(radar):
    """
    Return a dictonary of metadata for a given radar. An empty dictonary
    will be returned if no metadata dictonary exists for parameter radar.
    """
    if radar in _DEFAULT_METADATA:
        return _DEFAULT_METADATA[radar].copy()
    else:
        return {}
    
def get_plot_values(radar):
    """
    Return the values specific to a radar for plotting the radar fields.
    """
    return _DEFAULT_PLOT_VALUES[radar].copy()

def get_field_parameters():
    """
    Return the field titles for a specific radar field.
    """
    return _DEFAULT_FIELD_PARAMETERS.copy()
"""
qvp.config
==========
QVP Configuration

    get_metadata
    get_plot_values
    get_colorbar_titles
    get_field_titles

"""

from .default_config import _DEFAULT_METADATA, _DEFAULT_PLOT_VALUES, _DEFAULT_FIELD_PARAMETERS


def get_metadata(radar):
    """
    Return a dictonary of metadata for a given radar. An empty dictonary
    will be returned if no metadata dictonary exists for parameter radar.
    """
    if radar in _DEFAULT_METADATA:
        return _DEFAULT_METADATA[radar].copy()
    else:
        return {}
    
def get_plot_values(radar):
    """
    Return the values specific to a radar for plotting the radar fields.
    """
    return _DEFAULT_PLOT_VALUES[radar].copy()

def get_field_parameters():
    """
    Return the field titles for a specific radar field.
    """
    return _DEFAULT_FIELD_PARAMETERS.copy()
qvp.config ========== QVP Configuration      get_metadata     get_plot_values     get_colorbar_titles     get_field_titles Return a dictonary of metadata for a given radar. An empty dictonary     will be returned if no metadata dictonary exists for parameter radar. Return the values specific to a radar for plotting the radar fields. Return the field titles for a specific radar field.