def _downsample(st, sr):
    """
        Downsampling the MSEED to the designated sampling rate
    """
    for i in range(0, len(st)):
        st[i].decimate(factor=int(st[i].stats.sampling_rate / sr),
            strict_length=False)
    return st
