def segment_spectrum_batch(spectra_mat, w=50, dw=25):
    """
    Segment multiple raman spectra into overlapping windows

    Args:
        spectra_mat (2D numpy array): array of input raman spectrum
        w (int, optional): length of window. Defaults to 50.
        dw (int, optional): step size. Defaults to 25.

    Returns:
        list of numpy array: list containing arrays of segmented raman spectrum
    """
    
    return [spectra_mat[:,i:i+w] for i in range(0,spectra_mat.shape[1]-w,dw) ]