Exemplo n.º 1
0
    def run_pa(self,deg,flatimage,arcimage,outputfile):
        from desispec import bootcalib as desiboot
        xfit,fdicts,gauss,all_wv_soln=desiboot.bootcalib(deg,flatimage,arcimage)

        desiboot.write_psf(outputfile, xfit, fdicts, gauss,all_wv_soln)
        log.info("PSF file wrtten. Exiting Quicklook for this configuration.") #- File written no need to go further
        sys.exit(0)   
Exemplo n.º 2
0
    def run_pa(self,deg,flatimage,arcimage,outputfile):
        from desispec import bootcalib as desiboot
        xfit,fdicts,gauss,all_wv_soln=desiboot.bootcalib(deg,flatimage,arcimage)

        desiboot.write_psf(outputfile, xfit, fdicts, gauss,all_wv_soln)
        log.info("PSF file wrtten. Exiting Quicklook for this configuration.") #- File written no need to go further
        sys.exit(0)   
Exemplo n.º 3
0
 def test_bootcalib(self):        
     from desispec.bootcalib import bootcalib
     from desispec.image import Image
     arc = fits.getdata(self.testarc)
     flat = fits.getdata(self.testflat)
     arcimage = Image(arc, np.ones_like(arc), camera='b0')
     flatimage = Image(flat, np.ones_like(flat), camera='b0')
     results = bootcalib(3, flatimage, arcimage)
Exemplo n.º 4
0
 def test_bootcalib(self):
     from desispec.bootcalib import bootcalib
     from desispec.image import Image
     arc = fits.getdata(self.testarc)
     flat = fits.getdata(self.testflat)
     arcimage = Image(arc, np.ones_like(arc), camera='b0')
     flatimage = Image(flat, np.ones_like(flat), camera='b0')
     results = bootcalib(3, flatimage, arcimage)