QA for an Exposures


In [1]:
# imports
from desispec.qa import qa_exposure as dqaexp

Load


In [2]:
expid = 2
night = '20150211'
specprod_dir = '/Users/xavier/DESI/TST/dogwood/'

In [19]:
# Load data
reload(dqaexp)
qaexp = dqaexp.QA_Exposure(expid, night, specprod_dir, flavor='dark')


/Users/xavier/anaconda/lib/python2.7/site-packages/matplotlib/__init__.py:1350: UserWarning:  This call to matplotlib.use() has no effect
because the backend has already been chosen;
matplotlib.use() must be called *before* pylab, matplotlib.pyplot,
or matplotlib.backends is imported for the first time.

  warnings.warn(_use_error_msg)

In [20]:
qaexp.data


Out[20]:
{'expid': 2,
 'flavor': 'dark',
 'frames': {'b0': {u'FIBERFLAT': {u'PARAM': {'MAX_MEAN_OFF': 0.05,
     'MAX_N_MASK': 20000,
     'MAX_OFF': 0.15,
     'MAX_RMS': 0.02,
     'MAX_SCALE_OFF': 0.05},
    u'QA': {'MAX_MEANSPEC': 20036.989142187947,
     'MAX_MEAN_OFF': 11.95263722228059,
     'MAX_OFF': 31.86232340755261,
     'MAX_RMS': 4.606179058912466,
     'MAX_SCALE_OFF': 17.14729933910587,
     'N_MASK': 141167}},
   u'FLUXCALIB': {u'PARAM': {'MAX_ZP_OFF': 0.2, 'ZP_WAVE': 4800.0},
    u'QA': {'MAX_ZP_OFF': [0.03162147678992966, 119],
     'NSTARS_FIBER': 5,
     'RMS_ZP': 0.010376131442290066,
     'ZP': 25.234761071013523}},
   u'SKYSUB': {u'PARAM': {'PCHI_RESID': 0.05},
    u'QA': {'MED_RESID': 0.7486787818569205, 'NBAD_PCHI': 38, 'NSKY_FIB': 45}},
   'camera': 'b0',
   u'file': '/Users/xavier/DESI/TST/dogwood/exposures/20150211/00000002/qa-b0-00000002.yaml',
   'flavor': 'science'}},
 'night': '20150211'}

FluxCalib QA


In [21]:
qaexp.fluxcalib()


Wrote QA FluxCalib Exposure file: qa-flux-{expid:08d}.pdf

In [18]:
qaexp.data


Out[18]:
{u'FLUXCALIB': {u'b': {u'ZP_RMS': 0.0}, u'r': {}, u'z': {}},
 'expid': 2,
 'flavor': 'dark',
 'frames': {'b0': {u'FIBERFLAT': {u'PARAM': {'MAX_MEAN_OFF': 0.05,
     'MAX_N_MASK': 20000,
     'MAX_OFF': 0.15,
     'MAX_RMS': 0.02,
     'MAX_SCALE_OFF': 0.05},
    u'QA': {'MAX_MEANSPEC': 20036.989142187947,
     'MAX_MEAN_OFF': 11.95263722228059,
     'MAX_OFF': 31.86232340755261,
     'MAX_RMS': 4.606179058912466,
     'MAX_SCALE_OFF': 17.14729933910587,
     'N_MASK': 141167}},
   u'FLUXCALIB': {u'PARAM': {'MAX_ZP_OFF': 0.2, 'ZP_WAVE': 4800.0},
    u'QA': {'MAX_ZP_OFF': [0.03162147678992966, 119],
     'NSTARS_FIBER': 5,
     'RMS_ZP': 0.010376131442290066,
     'ZP': 25.234761071013523}},
   u'SKYSUB': {u'PARAM': {'PCHI_RESID': 0.05},
    u'QA': {'MED_RESID': 0.7486787818569205, 'NBAD_PCHI': 38, 'NSKY_FIB': 45}},
   'camera': 'b0',
   u'file': '/Users/xavier/DESI/TST/dogwood/exposures/20150211/00000002/qa-b0-00000002.yaml',
   'flavor': 'science'}},
 'night': '20150211'}

In [ ]: