def idx_num_to_name(L):
    """
    Switch from index-by-number to index-by-name.

    :param dict L: Metadata
    :return dict L: Metadata
    """
    logger_jsons.info("enter idx_num_to_name")

    try:
        if "paleoData" in L:
            L["paleoData"] = _import_data(L["paleoData"], "paleo")
        if "chronData" in L:
            L["chronData"] = _import_data(L["chronData"], "chron")
    except Exception as e:
        logger_jsons.error("idx_num_to_name: {}".format(e))
        print("Error: idx_name_to_num: {}".format(e))

    logger_jsons.info("exit idx_num_to_name")
    return L