Пример #1
0
    def test1(self):
        sp = P.interpret(P.parse(P.scan("icat(k93models,5750,0.0,4.5)")))
        sp.writefits(self.filename)

        sp = spectrum.TabularSourceSpectrum(testdata)

        (wave, flux) = sp.getArrays()
        i = len(flux)/3
        self.assertApproxFP(flux[i], 9.634403E-13, accuracy=0.0025)
Пример #2
0
 def setUp(self):
     self.fname = os.path.join(locations.rootdir, 'calspec',
                               'feige66_002.fits')
     self.old_sp = spectrum.TabularSourceSpectrum(self.fname)
     self.new_sp = spectrum.FileSourceSpectrum(self.fname)
Пример #3
0
 def setUp(self):
     self.sp = spectrum.TabularSourceSpectrum(testdata)