import lcogtgemini
import os
from pyraf import iraf

def make_qecorrection(arcfiles):
    for f in arcfiles:
        #read in the arcfile name
        with open(f) as txtfile:
            arcimage = txtfile.readline()
            # Strip off the newline character
            arcimage = 'g' + arcimage.split('\n')[0]
        if not os.path.exists(f[:-8] +'.qe.fits'):
            iraf.gqecorr(arcimage, refimages=f[:-4]+'.arc.fits', fl_correct=False, fl_keep=True,
                         corrimages=f[:-8] +'.qe.fits', verbose=True, fl_vardq=lcogtgemini.dodq)

15f7fcfbd34fa14e80f1b62730f8b8018408a271
<mask token>

<mask token>


def make_qecorrection(arcfiles):
    for f in arcfiles:
        with open(f) as txtfile:
            arcimage = txtfile.readline()
            arcimage = 'g' + arcimage.split('\n')[0]
        if not os.path.exists(f[:-8] + '.qe.fits'):
            iraf.gqecorr(arcimage, refimages=f[:-4] + '.arc.fits',
                fl_correct=False, fl_keep=True, corrimages=f[:-8] +
                '.qe.fits', verbose=True, fl_vardq=lcogtgemini.dodq)

import lcogtgemini
import os
from pyraf import iraf


def make_qecorrection(arcfiles):
    for f in arcfiles:
        with open(f) as txtfile:
            arcimage = txtfile.readline()
            arcimage = 'g' + arcimage.split('\n')[0]
        if not os.path.exists(f[:-8] + '.qe.fits'):
            iraf.gqecorr(arcimage, refimages=f[:-4] + '.arc.fits',
                fl_correct=False, fl_keep=True, corrimages=f[:-8] +
                '.qe.fits', verbose=True, fl_vardq=lcogtgemini.dodq)

import lcogtgemini
import os
from pyraf import iraf

def make_qecorrection(arcfiles):
    for f in arcfiles:
        #read in the arcfile name
        with open(f) as txtfile:
            arcimage = txtfile.readline()
            # Strip off the newline character
            arcimage = 'g' + arcimage.split('\n')[0]
        if not os.path.exists(f[:-8] +'.qe.fits'):
            iraf.gqecorr(arcimage, refimages=f[:-4]+'.arc.fits', fl_correct=False, fl_keep=True,
                         corrimages=f[:-8] +'.qe.fits', verbose=True, fl_vardq=lcogtgemini.dodq)
