def CustomNoise_1d(N, dx, xPsd, yPsd):
    (xPsd_, yPsd_) = rm.FastResample1d(xPsd, yPsd, N)
    return Psd2NoisePattern_1d(yPsd_, Semiaxis=True)
def CustomNoise_1d(N, dx, xPsd, yPsd):
    (xPsd_, yPsd_) = rm.FastResample1d(xPsd, yPsd, N)
    return Psd2NoisePattern_1d(yPsd_, Semiaxis=True)