In [1]:
# imports
from importlib import reload
import time
from desispec.qa import qa_exposure as dqaexp
In [2]:
expid = 23
night = '20200323'
specprod_dir = '/home/xavier/DESI/DESI_SCRATCH/18.11/spectro/redux/mini/'
multi_root = 'mini_qa'
In [15]:
# Load data
reload(dqaexp)
qaexp = dqaexp.QA_Exposure(expid, night, 'science', specprod_dir=specprod_dir, multi_root=multi_root)
In [16]:
qaexp.data['frames']['b1']['FLUXCALIB']
Out[16]:
In [17]:
tstart = time.time()
qaexp.s2n_table()
tend = time.time()
tend-tstart
Out[17]:
In [18]:
qaexp.qa_s2n[0:10]
Out[18]:
In [16]:
qaexp.qa_s2n.meta
Out[16]:
In [7]:
outfil = 'qa-00000006-flux.pdf'
qaexp.fluxcalib(outfil)
In [ ]: