In [ ]:
%matplotlib notebook
In [ ]:
# imports
from desispec.qa import qa_prod as dqap
In [ ]:
specprod_dir = '/Users/xavier/DESI/DESI_SCRATCH/redux/madrone/'
In [ ]:
reload(dqap)
qa_prod = dqap.QA_Prod(specprod_dir)
In [ ]:
qa_prod.remake_frame_qa(remake_plots=True)
In [ ]:
qa_prod.slurp(remove=False)
In [ ]:
from desispec.qa import qa_prod as dqap
In [ ]:
specprod_dir = '/Users/xavier/DESI/DESI_SCRATCH/redux/madrone/'
reload(dqap)
qa_prod = dqap.QA_Prod(specprod_dir)
In [ ]:
qa_prod.load_data()
In [ ]:
qa_prod.data['20160607'][6]['b0']#['SKYSUB']['QA']
In [ ]:
sky_resid_b, ne_dict = qa_prod.get_qa_array('SKYSUB', 'MED_RESID', channels=['b'])
sky_resid_b
In [ ]:
ne_dict
In [ ]:
plt.clf()
ax = plt.gca()
ax.hist(sky_resid_b)
ax.set_xlim(-1,1)
ax.set_xlabel('MED_SKY_RESID')
In [ ]:
from desispec.qa import qa_plots as dqqp
In [ ]:
reload(dqqp)
dqqp.prod_channel_hist(qa_prod, 'SKYSUB', 'MED_RESID', xlim=(-1,1))
profx.ucolick.org> desi_qa_prod -h
usage: desi_qa_prod [-h] --specprod_dir SPECPROD_DIR
[--make_frameqa MAKE_FRAMEQA] [--slurp] [--remove]
[--clobber] [--channel_hist CHANNEL_HIST]
Generate Production Level QA
optional arguments:
-h, --help show this help message and exit
--specprod_dir SPECPROD_DIR
Path containing the exposures/directory to use
--make_frameqa MAKE_FRAMEQA
Bitwise flag to control remaking the QA files (1) and
figures (2) for each frame in the production
--slurp slurp production QA files into one?
--remove remove frame QA files?
--clobber clobber existing QA files?
--channel_hist CHANNEL_HIST
Generate channel histogram(s)
In [ ]: