Exemplo n.º 1
0
#!/usr/bin/env python

# -*- python -*-

"""This module contains functions to find files of a particular type in the SLAC directory tree"""

from lsst.eo_utils.base.file_utils import FILENAME_FORMATS,\
    SLOT_FORMAT_STRING, RAFT_FORMAT_STRING, SUMMARY_FORMAT_STRING


QE_DEFAULT_FIELDS = dict(testType='qe')


RAFT_QE_TABLE_FORMATTER = FILENAME_FORMATS.add_format('raft_qe_table',
                                                      RAFT_FORMAT_STRING,
                                                      fileType='tables',
                                                      **QE_DEFAULT_FIELDS)
RAFT_QE_PLOT_FORMATTER = FILENAME_FORMATS.add_format('raft_qe_plot',
                                                     RAFT_FORMAT_STRING,
                                                     fileType='plots',
                                                     **QE_DEFAULT_FIELDS)
SLOT_QE_TABLE_FORMATTER = FILENAME_FORMATS.add_format('slot_qe_table',
                                                      SLOT_FORMAT_STRING,
                                                      fileType='tables',
                                                      **QE_DEFAULT_FIELDS)
SLOT_QE_PLOT_FORMATTER = FILENAME_FORMATS.add_format('slot_qe_plot',
                                                     SLOT_FORMAT_STRING,
                                                     fileType='plots',
                                                     **QE_DEFAULT_FIELDS)

SUM_QE_TABLE_FORMATTER = FILENAME_FORMATS.add_format('sum_qe_table',
Exemplo n.º 2
0
#!/usr/bin/env python

# -*- python -*-
"""This module contains functions to find files of a particular type in the SLAC directory tree"""

from lsst.eo_utils.base.file_utils import FILENAME_FORMATS,\
    SLOT_FORMAT_STRING, RAFT_FORMAT_STRING, RUN_FORMAT_STRING, SUMMARY_FORMAT_STRING,\
    RUN_SUPERBIAS_FORMAT_STRING

BIAS_DEFAULT_FIELDS = dict(testType='bias')
SUPERBIAS_DEFAULT_FIELDS = dict(testType='superbias')

RAFT_BIAS_TABLE_FORMATTER = FILENAME_FORMATS.add_format('raft_bias_table',
                                                        RAFT_FORMAT_STRING,
                                                        fileType='tables',
                                                        **BIAS_DEFAULT_FIELDS)
RAFT_BIAS_PLOT_FORMATTER = FILENAME_FORMATS.add_format('raft_bias_plot',
                                                       RAFT_FORMAT_STRING,
                                                       fileType='plots',
                                                       **BIAS_DEFAULT_FIELDS)
SLOT_BIAS_TABLE_FORMATTER = FILENAME_FORMATS.add_format('slot_bias_table',
                                                        SLOT_FORMAT_STRING,
                                                        fileType='tables',
                                                        **BIAS_DEFAULT_FIELDS)
SLOT_BIAS_PLOT_FORMATTER = FILENAME_FORMATS.add_format('slot_bias_plot',
                                                       SLOT_FORMAT_STRING,
                                                       fileType='plots',
                                                       **BIAS_DEFAULT_FIELDS)
BIAS_RUNTABLE_FORMATTER = FILENAME_FORMATS.add_format('run_bias_table',
                                                      RUN_FORMAT_STRING,
                                                      fileType='tables',
Exemplo n.º 3
0
#!/usr/bin/env python

# -*- python -*-
"""This module contains functions to find files of a particular type in the SLAC directory tree"""

from lsst.eo_utils.base.file_utils import FILENAME_FORMATS,\
    SLOT_FORMAT_STRING, RAFT_FORMAT_STRING, SUMMARY_FORMAT_STRING,\
    SUPERFLAT_FORMAT_STRING, SUPERFLAT_STAT_FORMAT_STRING, RUN_SUPERFLAT_FORMAT_STRING,\
    SUPERFLAT_SPEC_FORMAT_STRING, get_hardware_type_and_id, get_files_for_run

SFLAT_DEFAULT_FIELDS = dict(testType='sflat')

SUPERFLAT_FORMATTER = FILENAME_FORMATS.add_format('superflat',
                                                  SUPERFLAT_FORMAT_STRING)
SUPERFLAT_SPEC_FORMATTER = FILENAME_FORMATS.add_format(
    'superflat_spec', SUPERFLAT_SPEC_FORMAT_STRING)
SUPERFLAT_STAT_FORMATTER = FILENAME_FORMATS.add_format(
    'superflat_stat', SUPERFLAT_STAT_FORMAT_STRING)
RUN_SUPERFLAT_FORMATTER = FILENAME_FORMATS.add_format(
    'run_superflat', RUN_SUPERFLAT_FORMAT_STRING)

RAFT_SFLAT_TABLE_FORMATTER = FILENAME_FORMATS.add_format(
    'raft_sflat_table',
    RAFT_FORMAT_STRING,
    fileType='tables',
    **SFLAT_DEFAULT_FIELDS)
RAFT_SFLAT_PLOT_FORMATTER = FILENAME_FORMATS.add_format('raft_sflat_plot',
                                                        RAFT_FORMAT_STRING,
                                                        fileType='plots',
                                                        **SFLAT_DEFAULT_FIELDS)
SLOT_SFLAT_TABLE_FORMATTER = FILENAME_FORMATS.add_format(
Exemplo n.º 4
0
#!/usr/bin/env python

# -*- python -*-
"""This module contains functions to find files of a particular type in the SLAC directory tree"""

from lsst.eo_utils.base.file_utils import FILENAME_FORMATS,\
    SLOT_FORMAT_STRING, RAFT_FORMAT_STRING, SUMMARY_FORMAT_STRING

PPUMP_DEFAULT_FIELDS = dict(testType='ppump')

RAFT_PPUMP_TABLE_FORMATTER = FILENAME_FORMATS.add_format(
    'raft_ppump_table',
    RAFT_FORMAT_STRING,
    fileType='tables',
    **PPUMP_DEFAULT_FIELDS)
RAFT_PPUMP_PLOT_FORMATTER = FILENAME_FORMATS.add_format('raft_ppump_plot',
                                                        RAFT_FORMAT_STRING,
                                                        fileType='plots',
                                                        **PPUMP_DEFAULT_FIELDS)
SLOT_PPUMP_TABLE_FORMATTER = FILENAME_FORMATS.add_format(
    'slot_ppump_table',
    SLOT_FORMAT_STRING,
    fileType='tables',
    **PPUMP_DEFAULT_FIELDS)
SLOT_PPUMP_PLOT_FORMATTER = FILENAME_FORMATS.add_format('slot_ppump_plot',
                                                        SLOT_FORMAT_STRING,
                                                        fileType='plots',
                                                        **PPUMP_DEFAULT_FIELDS)

SUM_PPUMP_TABLE_FORMATTER = FILENAME_FORMATS.add_format('sum_ppump_table',
                                                        SUMMARY_FORMAT_STRING,
Exemplo n.º 5
0
#!/usr/bin/env python

# -*- python -*-
"""This module contains functions to find files of a particular type in the SLAC directory tree"""

from lsst.eo_utils.base.file_utils import FILENAME_FORMATS,\
    SLOT_FORMAT_STRING, RAFT_FORMAT_STRING, SUMMARY_FORMAT_STRING,\
    SUPERDARK_FORMAT_STRING, SUPERDARK_STAT_FORMAT_STRING,\
    RUN_SUPERDARK_FORMAT_STRING, RUN_SUPERDARK_STAT_FORMAT_STRING

DARK_DEFAULT_FIELDS = dict(testType='dark')
SDARK_DEFAULT_FIELDS = dict(testType='superdark')

SUPERDARK_FORMATTER = FILENAME_FORMATS.add_format('superdark',
                                                  SUPERDARK_FORMAT_STRING)
SUPERDARK_STAT_FORMATTER = FILENAME_FORMATS.add_format(
    'superdark_stat', SUPERDARK_STAT_FORMAT_STRING)
RUN_SUPERDARK_FORMATTER = FILENAME_FORMATS.add_format(
    'run_superdark', RUN_SUPERDARK_FORMAT_STRING)
RUN_SUPERDARK_STAT_FORMATTER = FILENAME_FORMATS.add_format(
    'run_superdark_stat', RUN_SUPERDARK_STAT_FORMAT_STRING)

RAFT_DARK_TABLE_FORMATTER = FILENAME_FORMATS.add_format('raft_dark_table',
                                                        RAFT_FORMAT_STRING,
                                                        fileType='tables',
                                                        **DARK_DEFAULT_FIELDS)
RAFT_DARK_PLOT_FORMATTER = FILENAME_FORMATS.add_format('raft_dark_plot',
                                                       RAFT_FORMAT_STRING,
                                                       fileType='plots',
                                                       **DARK_DEFAULT_FIELDS)
SLOT_DARK_TABLE_FORMATTER = FILENAME_FORMATS.add_format('slot_dark_table',