def dict_maker(directory_list):
    """
    uses the list of file directories constructed by pathlist_make(),
    In the case of the obs and model results, merely returns a dict of file name and path for later use.

    :return:
    """
    location_dict = {}
    if 'rzsm_u_' in directory_list[0]:
        for item in directory_list:
            item_list = item.split('.')
            sel = item_list[0]
            label = sel[-20:]
            location_dict[label] = item
        return location_dict
    elif 'rzsm_' in directory_list[0]:
        for item in directory_list:
            item_list = item.split('.')
            sel = item_list[0]
            label = sel[-19:]
            location_dict[label] = item
        return location_dict
