def anss_params(agency_id, evid):
    """
    Generate a dictionary of ANSS params for tagging events
    """
    _agid = agency_id.lower()
    d = dict([
        ('@catalog:eventid', "{0:08d}".format(evid)),
        ('@catalog:dataid', "{0}{1:08d}".format(_agid, evid)),
        ('@catalog:eventsource', _agid),
        ('@catalog:datasource', _agid),
    ])
    return d