astro.instrument.HeaderTranslatorWFC
index
/astro-wise/AWEHOME/AWBASE/astro/instrument/HeaderTranslatorWFC.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 Wide-Field
    Camera at the Isaac Newton Telescope at La Palma.
 
    Detailed documentation about the HeaderTranslator class family can be
    found in the HeaderTranslator module.
 
----------------------------------------------------------------------------

 
Classes
       
astro.instrument.HeaderTranslator.HeaderTranslator
HeaderTranslatorWFC

 
class HeaderTranslatorWFC(astro.instrument.HeaderTranslator.HeaderTranslator)
    This class translates the headers of images from the Wide-Field Camera
at the Isaac Newton Telescope at La Palma.
 
  Methods defined here:
correct_for_aperture(self, crval1, crval2, frame)
This method takes into account the capability of the INT-WFC to
center the positional coordinates either on the center of any of the
4 chips or on the rotator center of the instrument.
translate_astrometric_keys(self, frame)
translate_date_keys(self, frame)
translate_photometric_keys(self, frame)

Data and other attributes defined here:
cd_map = {'A5382-1-7': [0.0, -9.2499999999999999e-05, -9.2499999999999999e-05, 0.0], 'A5383-17-7': [9.2499999999999999e-05, 0.0, 0.0, -9.2499999999999999e-05], 'A5506-4': [0.0, -9.2499999999999999e-05, -9.2499999999999999e-05, 0.0], 'A5530-3': [0.0, -9.2499999999999999e-05, -9.2499999999999999e-05, 0.0]}
chip_id_keys = ['CHIP_ID', 'CCDNAME']
chip_list = ['A5382-1-7', 'A5383-17-7', 'A5506-4', 'A5530-3']
chip_orientation = {'A5382-1-7': 1, 'A5383-17-7': 1, 'A5506-4': 1, 'A5530-3': 1}
chip_overscan = {'A5382-1-7': [53, 53, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0], 'A5383-17-7': [53, 53, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0], 'A5506-4': [53, 53, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0], 'A5530-3': [53, 53, 0, 104, 0, 0, 0, 0, 0, 0, 0, 0]}
chip_pixelsize = {'A5382-1-7': 13.5, 'A5383-17-7': 13.5, 'A5506-4': 13.5, 'A5530-3': 13.5}
chip_size = {'NAXIS1': 2154, 'NAXIS2': 4200}
crpix_map = {'A5382-1-7': [1041.0, 2056.0], 'A5383-17-7': [4200.0, 970.0], 'A5506-4': [-1082.0, 2021.0], 'A5530-3': [3115.0, 2117.0]}
epoch_id_keys = ['EPOCH', 'EQUINOX']
filter_cwl = {'191': 4298.0, '192': 5425.0, '193': 6380.0, '194': 8063.0, '195': 8763.0, '196': 5008.0, '197': 6568.0, '198': 3480.0, '199': 4110.0, '200': 4695.0, ...}
filter_dict = {'191': 'HarrisB', '192': 'HarrisV', '193': 'HarrisR', '194': 'RGO_I', '195': 'RGO_Z', '196': 'OIII', '197': 'Halpha', '198': 'StromgrenU', '199': 'StromgrenV', '200': 'StromgrenB', ...}
filter_id_keys = ['FILT_ID', 'WFFID']
fringe_list = ['193', '194', '195', '212', '214', '215']
instrument_elevation = 2348.0
instrument_latitude = 28.762
instrument_longitude = -17.877592
instrument_name = 'WFC'
instrument_telescope_name = 'INT'
instrument_timezone = 0
number_of_chips = 4

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_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:
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_var_dict = {'aaChip': 'aChip'}
convert_data = 0
filter_var_dict = {'aaFilter': 'aFilter'}
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']