astro.instrument.HeaderTranslatorMONICA (version @(#)$Revision: 1.9 $)
index
/astro-wise/AWEHOME/AWBASE/astro/instrument/HeaderTranslatorMONICA.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 MONICA CCD camera
  at the 0.8m telescope at Wendelstein.
 
  Detailed documentation about the HeaderTranslator class family can be
  found in the HeaderTranslator module.
 
---------------------------------------------------------------------------

 
Classes
       
astro.instrument.HeaderTranslator.HeaderTranslator
HeaderTranslatorMONICA

 
class HeaderTranslatorMONICA(astro.instrument.HeaderTranslator.HeaderTranslator)
    This class translates the headers of images from the MONICA CCD camera
at the 0.8m telescope at Wendelstein.
 
  Methods defined here:
translate_astrometric_keys(self, frame)
translate_photometric_keys(self, frame)

Data and other attributes defined here:
astrom_corr = 0
cd_map = {'Tek1024AB': [-0.00013750000000000001, 0.0, 0.0, 0.00013750000000000001]}
chip_id_keys = ['CHIP_ID', 'DETECTOR']
chip_list = ['Tek1024AB']
chip_orientation = {'Tek1024AB': 1}
chip_overscan = {'Tek1024AB': [50, 26, 16, 0, 0, 0, 0, 0, 0, 0, 0, 0]}
chip_pixelsize = {'Tek1024AB': 24}
chip_size = {'NAXIS1': 1100, 'NAXIS2': 1040}
convert_data = 1
crpix_map = {'Tek1024AB': [0.0, 1040.0]}
epoch_id_keys = ['EPOCH', 'EPOCH']
filter_cwl = {'B_old': 4562.5200000000004, 'H_alpha': 6517.25, 'I_new': 9000.0, 'R_new': 6800.0, 'U_old': 3636.9000000000001, 'V_new': 4900.0, 'V_old': 5395.6199999999999, 'free': 3000.0}
filter_dict = {'B_old': 'JohnsonB', 'H_alpha': 'Halpha', 'I_new': 'CousinsI', 'R_new': 'CousinsR', 'U_old': 'JohnsonU', 'V_new': 'RoeserBV', 'V_old': 'JohnsonV', 'free': 'N/A'}
filter_id_keys = ['FILT_ID', 'FILTER']
filter_var_dict = {'B old': 'B_old', 'H_alpha': 'H_alpha', 'I new': 'I_new', 'I new (RG780)': 'I_new', 'R new': 'R_new', 'R new (OG570+Cfx)': 'R_new', 'U old': 'U_old', 'V new': 'V_new', 'V new (BG39)': 'V_new', 'V old': 'V_old', ...}
fringe_list = ['I_new']
instrument_elevation = 1845.0
instrument_latitude = 47.708300000000001
instrument_longitude = 12.013299999999999
instrument_name = 'MONICA'
instrument_telescope_name = 'Wendelstein 0.8m'
instrument_timezone = -1
number_of_chips = 1
obs_dictionary_id_id_keys = ['OBS_DID']
obs_id_id_keys = ['OBS_ID', 'UTC']
obs_name_id_keys = ['OBS_NAME', 'OBSERVER']
obs_program_id_id_keys = ['OBS_PID', 'PROPOSID']
obs_start_id_keys = ['OBS_STRT', 'DATE-OBS', 'DATE-OBS']
rfd_header_keys = ['INSTRUME', 'FILTER', 'DATE-OBS', 'IMAGETYP', 'CRVAL1', 'CRVAL2', 'CTYPE1', 'CTYPE2', 'DETECTOR', 'OBSERVER', 'EPOCH', 'AIRMASS', 'POSTN-RA', 'POSTN-DE']
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', 'IMAGETYP']
tpl_version_id_keys = ['TPL_VERS']

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_filter(self, filter_id, *args)
This method constructs a Filter object from the input filter
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_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_template_keys(self, frame)
Create a Template object for a frame.

Data and other attributes inherited from astro.instrument.HeaderTranslator.HeaderTranslator:
aw_header_keys = ['DATE', 'DATE-OBS', 'EXPTIME', 'AIRMEND', 'AIRMSTRT', 'LST', 'MJD-OBS', 'OBJECT', 'OBSERVER', 'UTC', 'INSTRUME', 'TELESCOP', 'CHIP_ID', 'FILT_ID']
chip_var_dict = {'aaChip': 'aChip'}
ingest_reduced = 0
instrument_id_keys = ['INSTRUME']
obs_PI_COI_id_id_keys = ['OBS_PIID']
obs_PI_COI_name_id_keys = ['OBS_PINA']
obs_group_id_keys = ['OBS_GRP']

 
Data
        __version__ = '@(#)$Revision: 1.9 $'