import json


def read_coef(configfile="config_dbzhtorate.json"):
    """ Read Z-R and Z-S conversion coefficients from file.
    
    Keyword arguments:
    configfile -- json file containing coefficients

    Return:
    coef -- dictionary containing coefficients
    """
    
    with open(configfile, "r") as jsonfile:
        data = json.load(jsonfile)
 
    coef = data['coef']

    return coef