astro.instrument.HeaderTranslatorSoftI
index
/astro-wise/AWEHOME/AWBASE/astro/instrument/HeaderTranslatorSoftI.py

---------------------------------------------------------------------------
 
    The HeaderTranslator family of classes is used to encapsulate the large
    variation in header keywords that exists for different instruments. The
    specific HeaderTranslator in this module deals with the artificially
    generated data used in some of the unittests.  Detailed documentation
    about the HeaderTranslator class family can be found in the
    HeaderTranslator module.
 
----------------------------------------------------------------------------

 
Classes
       
astro.instrument.HeaderTranslator.HeaderTranslator
HeaderTranslatorSoftI

 
class HeaderTranslatorSoftI(astro.instrument.HeaderTranslator.HeaderTranslator)
    This class translates the headers of unittestdata that is computer
generated and which does not come from a real instrument mounted on a
telescope. Unittestdata should have INSTRUME='SoftI' to use this
translator.
 
  Methods defined here:
construct_filter(self, filter_id, *args)
This method constructs a filter from the input filter identifier.

Data and other attributes defined here:
cd_map = {'EEVCCD4482': [-6.6111111111111107e-05, 0.0, 0.0, 6.6111111111111107e-05], 'SoftC': [-6.6111111111111107e-05, 0.0, 0.0, 6.6111111111111107e-05], 'ccd50': [-6.6111111111111107e-05, 0.0, 0.0, 6.6111111111111107e-05]}
chip_id_keys = ['CHIP_ID', 'HIERARCH ESO DET CHIP ID', 'HIERARCH ESO DET CHIP NAME']
chip_list = ['SoftC', 'ccd50', 'EEVCCD4482']
chip_orientation = {'SoftC': 2, 'ccd50': 2}
chip_overscan = {'EEVCCD4482': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'SoftC': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'ccd50': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]}
crpix_map = {'EEVCCD4482': [4963.0, -155.0], 'SoftC': [4963.0, -155.0], 'ccd50': [4963.0, -155.0]}
epoch_id_keys = ['EPOCH', 'EQUINOX']
filter_cwl = {'845': 7838.4499999999998, 'Unknown': 3000.0}
filter_dict = {'845': 'CousinsI', 'Unknown': 'Unknown'}
filter_id_keys = ['FILT_ID', 'FILTER', 'HIERARCH ESO INS FILT ID']
filter_var_dict = {None: '845'}
fringe_list = ['845']
instrument_elevation = 2335.0
instrument_latitude = -29.254300000000001
instrument_longitude = -70.7346
instrument_name = 'SoftI'
instrument_telescope_name = 'MPI-2.2'
instrument_timezone = 4
number_of_chips = 1

Methods inherited from astro.instrument.HeaderTranslator.HeaderTranslator:
__init__(self, header=None, chip_config=None)
This (abstract) constructor allows instruments with multiple CCD
geometry configurations to return the proper configuration based on
a specified chip_config or automatically via values in the header.
For instruments with only one config, it will do nothing, but can
be configured to operate in the same fashion as a multi-config
instrument if desired.
 
For an example of a multiconfig instrument, see HeaderTranslatorSUP.
 
     header: a Frame.header instance
chip_config: integer (or other object) key to select a specific chip
             configuration
 
NOTE: If a chip_config is specified, it should override the use of
      the discovery of chip_config from the header.
 
Class attributes set here are:
chip_config_chip_id: if one extension is used to obtain the unique
                     chip_config, this is its name.
   chip_config_keys: header keywords used to construct the
                     chip_config
chip_config_default: chip_config of the canonical configuration
   chip_config_dict: dictionary holding all chip_configs in the
                     format: {chip_config_object : index}
        chip_config: The final form of the chip_config to use in
                     the dictionaries.  This MUST be an integer!
 
NOTE: The chip_config_dict's indexes are integers starting at 0 for
      the canonical configuration and increasing incrementally
      through the remaining configurations.
check_extensions(self, rawfitsdata)
Check that the extensions in the RawFitsData are consistent with
the instrument and return the proper list of extensions
check_variations_of_chip_id(self, chip_id)
For some of the instruments, the same chip can be known under
different chip identifiers.  This method makes sure that the
aliases are converted to the identifier under which the chip is
known in the Astro-WISE system. This conversion is done by using
the information stored in the chip_var_dict dictionary.
check_variations_of_filter_id(self, filter_id)
For some of the instruments, the same filter can be known under
different filter identifiers. This method makes sure that the
aliases are converted to the identifier under which the filter is
known in the Astro-WISE system. This conversion is done by using
the information stored in the filter_var_dict dictionary.
construct_chip(self, chip_id)
This method constructs a Chip object from the input chip
identifier.
construct_instrument(self)
This method constructs an instrument from the input header.
construct_lamp(self, name, identifier, position)
construct_observingblock(self, PI_COI_id, PI_COI_name, dictionary_id, group, id, name, program_id, start)
construct_template(self, category, dictionary_id, exposures, filter, id, index, name, obs_id, obs_start, sequencer, start, strategy, technique, type, version)
convert_dms_to_decimal(self, dmsstring)
Convert a string in DD:MM:SS.SS format to decimal degrees.
convert_hms_to_decimal(self, hmsstring)
Convert a string in HH:MM:SS.SS format to decimal degrees.
extract_extension(self, *args, **kwargs)
extract_header(self, *args, **kwargs)
get_chip_config_from_files(self, filenames)
Return the chip configuration for this instrument.  This method
looks at the headers of the FITS files given in filenames, first
for the special keyword identifying the chip_config.  If this
fails, it will loop through all filenames until it finds the header
containing the information from which to construct the chip_config.
If neither of these returns a valid chip_config value, 0 is
returned (the default value).
 
filenames: list of filenames refering to single-extension FITS
           images that are connected by common DATE-OBS
get_chip_config_from_header(self, frame)
Return a chip_config from a frame.header instance using the key
found in self.chip_config_awkey
get_lamp_ids(self, frame)
The default behaviour of this method as defined here deals with the
general situation in which no lamp is present. This method should
be polymorphed for those instruments for which lamp information is
available.
Note: do not change these default values.
get_list_of_chips(self)
get_list_of_filters(self)
get_weightframe(self, *args, **kwargs)
retrieve_value_from_header(self, frame, header_keys)
This method retrieves the value of a specific header item. This
header item can be the chip/filter/instrument identifier, but also
an astrometric quantity like the epoch. To do this, the method
browses the list of known keywords under which this specific header
item can be found, and checks these with the actual header.
translate_astrometric_keys(self, frame)
This method constructs an Astrom object for a frame using its chip
identifier.
translate_chip_keys(self, frame)
Create a Chip object for a frame.
translate_date_keys(self, object)
Translate the header keywords that are relevant for dates.
translate_filter_keys(self, frame)
Create a Filter object for a frame.
translate_instrument_keys(self, frame)
Create an Instrument object for a frame.
translate_lamp_keys(self, frame)
Create a Lamp object for a frame.
translate_misc_keys(self, object)
Translate any header keywords that are not translated elsewhere.
translate_observingblock_keys(self, frame)
Create an ObservingBlock object for a frame.
translate_photometric_keys(self, object)
Translate the header keywords that are relevant for the
photometry.
translate_template_keys(self, frame)
Create a Template object for a frame.

Data and other attributes inherited from astro.instrument.HeaderTranslator.HeaderTranslator:
astrom_corr = 0
aw_header_keys = ['DATE', 'DATE-OBS', 'EXPTIME', 'AIRMEND', 'AIRMSTRT', 'LST', 'MJD-OBS', 'OBJECT', 'OBSERVER', 'UTC', 'INSTRUME', 'TELESCOP', 'CHIP_ID', 'FILT_ID']
chip_pixelsize = {'aChip': 15}
chip_size = {'NAXIS1': 0, 'NAXIS2': 0}
chip_var_dict = {'aaChip': 'aChip'}
convert_data = 0
ingest_reduced = 0
instrument_id_keys = ['INSTRUME']
obs_PI_COI_id_id_keys = ['OBS_PIID']
obs_PI_COI_name_id_keys = ['OBS_PINA']
obs_dictionary_id_id_keys = ['OBS_DID']
obs_group_id_keys = ['OBS_GRP']
obs_id_id_keys = ['OBS_ID']
obs_name_id_keys = ['OBS_NAME']
obs_program_id_id_keys = ['OBS_PID']
obs_start_id_keys = ['OBS_STRT', 'DATE-OBS']
rfd_header_keys = []
tpl_category_id_keys = ['TPL_CATG']
tpl_dictionary_id_id_keys = ['TPL_DID']
tpl_exposures_id_keys = ['TPL_NEXP']
tpl_id_id_keys = ['TPL_ID']
tpl_index_id_keys = ['TPL_INDX']
tpl_name_id_keys = ['TPL_NAME']
tpl_obs_id_id_keys = ['OBS_ID']
tpl_obs_start_id_keys = ['OBS_STRT']
tpl_sequencer_id_keys = ['TPL_SEQ']
tpl_start_id_keys = ['TPL_STRT', 'DATE-OBS']
tpl_strategy_id_keys = ['TPL_STGY']
tpl_technique_id_keys = ['TPL_TECH']
tpl_type_id_keys = ['TPL_TYPE']
tpl_version_id_keys = ['TPL_VERS']