seqgranularity function

Changing sequence time granularity by aggregating positions