Add DAP related function
Add another AUTO-event generation function by using DAP and given pdates to replicate the event in the data set