dd2m function

Compute monthly data from daily (or subdaily) series