def output_args(kwargs):
    """
     :param kwargs: input parameters
     :return: args: dictionary of arguments related to output format
     :return: kwargs: dictionary of remaining arguments relating to query
    """
    args = {'opendap': kwargs.pop("opendap"), 'ncss': kwargs.pop("ncss"), 'variable': kwargs.pop("variable"),
            'output_kind': kwargs.pop("output_kind"), 'download': kwargs.pop("download"),
            'download_path': kwargs.pop("download_path")}
    return args, kwargs