INPUT: - Dictionary of waveforms loaded from text file
               - ALSO, Dictionary of timeseries indexed by name 

        OUTPUT:
               - Y_dict: resampled, normalized waveforms, ready for FFT
                    - new parameters:
                        + fs = 4096
                        + time duration: 1 second
               - metadata: dictionary of sampling information

def resample_waveforms(Y_dict):
    """
        INPUT: - Dictionary of waveforms loaded from text file
               - ALSO, Dictionary of timeseries indexed by name 

        OUTPUT:
               - Y_dict: resampled, normalized waveforms, ready for FFT
                    - new parameters:
                        + fs = 4096
                        + time duration: 1 second
               - metadata: dictionary of sampling information

    """
    # right now, Y_dict, using my ccsnmultivar github waveform sets
    for key in Y_dict.keys():
        Y_dict[key] = signal.decimate(Y_dict[key], 4, ftype='fir')
    metadata = {}
    metadata["fs"] = 4096. # in Hz
    metadata["T"] = 1. # in seconds
    metadata["source distance"] = 10. # in kpc
    return Y_dict, metadata