def get_url_dict(year, month, version, vargroups): """Return dict of urls for the variable groups.""" url_dict = {} for key in vargroups: nm = vargroups[key][0] url_dict[key] = merra.get_urls(year, month, version, nm) return url_dict