rep_mrs function

Replicate a scan over a given dimension.