def test2(self): spectra1 = [5.0, 19.0, 2.0, 4.0, 5.0] lam1 = [1, 2, 3, 4, 5] spectra2 = [5.0, 17.2, 3.3, 5.7] lam2 = [1.5, 2.5, 3.5, 4.5] x, y1, y2 = hsi.resample(lam1, spectra1, lam2, spectra2) eq_(len(x), 3) eq_(x[0], 2) eq_(x[2], 4) print x, y1, y2
def test2(self): spectra1 = [5.0, 19.0, 2.0, 4.0, 5.0] lam1 = [1, 2, 3, 4, 5] spectra2 = [5.0, 17.2, 3.3, 5.7] lam2 = [1.5, 2.5, 3.5, 4.5] x, y1, y2 = hsi.resample(lam1, spectra1, lam2, spectra2) eq_(len(x),3) eq_(x[0],2) eq_(x[2],4) print x, y1, y2
def test1a(self): spectra1 = [5.0, 19.0, 2.0, 4.0, 5.0] lam1 = [1, 2, 3, 4, 5] spectra2 = [2.0, 5.0, 19.0, 2.0, 4.0, 5.0, 20.0, 11.0] lam2 = [0, 1, 2, 3, 4, 5, 6, 7] x, y1, y2 = hsi.resample(lam1, spectra1, lam2, spectra2) eq_(len(x), 5) eq_(x[0], 1) eq_(x[4], 5) print x, y1, y2
def test1a(self): spectra1 = [5.0, 19.0, 2.0, 4.0, 5.0] lam1 = [1, 2, 3, 4, 5] spectra2 = [2.0, 5.0, 19.0, 2.0, 4.0, 5.0, 20.0, 11.0] lam2 = [0, 1, 2, 3, 4, 5, 6, 7] x, y1, y2 = hsi.resample(lam1, spectra1, lam2, spectra2) eq_(len(x),5) eq_(x[0],1) eq_(x[4],5) print x, y1, y2