pypeit.spectrographs.gemini_flamingos module

Module for Gemini FLAMINGOS.

class pypeit.spectrographs.gemini_flamingos.GeminiFLAMINGOS1Spectrograph[source]

Bases: GeminiFLAMINGOSSpectrograph

Gemini/Flamingos1 Echelle spectrograph methods.

Todo

This is a placeholder class that is not yet supported.

camera = 'FLAMINGOS'

Name of the spectrograph camera or arm. This is used by specdb, so use that naming convention

check_frame_type(ftype, fitstbl, exprng=None)[source]

Check for frames of the provided type.

Parameters:
Returns:

Boolean array with the flags selecting the exposures in fitstbl that are ftype type frames.

Return type:

numpy.ndarray

classmethod default_pypeit_par()[source]

Return the default parameters to use for this instrument.

Returns:

Parameters required by all of PypeIt methods.

Return type:

PypeItPar

get_detector_par(det, hdu=None)[source]

Return metadata for the selected detector.

Parameters:
  • det (int) – 1-indexed detector number.

  • hdu (astropy.io.fits.HDUList, optional) – The open fits file with the raw image of interest. If not provided, frame-dependent parameters are set to a default.

Returns:

Object with the detector metadata.

Return type:

DetectorContainer

header_name = 'F1'

Name of the spectrograph camera or arm from the Header. Usually the INSTRUME card.

name = 'gemini_flamingos1'

The name of the spectrograph. See Spectrographs for the currently supported spectrographs.

class pypeit.spectrographs.gemini_flamingos.GeminiFLAMINGOS2Spectrograph[source]

Bases: GeminiFLAMINGOSSpectrograph

Gemini/Flamingos2 Echelle spectrograph methods.

camera = 'FLAMINGOS'

Name of the spectrograph camera or arm. This is used by specdb, so use that naming convention

check_frame_type(ftype, fitstbl, exprng=None)[source]

Check for frames of the provided type.

Parameters:
Returns:

Boolean array with the flags selecting the exposures in fitstbl that are ftype type frames.

Return type:

numpy.ndarray

comment = 'Flamingos-2 NIR spectrograph'

A brief comment or description regarding PypeIt usage with this spectrograph.

config_specific_par(scifile, inp_par=None)[source]

Modify the PypeIt parameters to hard-wired values used for specific instrument configurations.

Parameters:
  • scifile (str) – File to use when determining the configuration and how to adjust the input parameters.

  • inp_par (ParSet, optional) – Parameter set used for the full run of PypeIt. If None, use default_pypeit_par().

Returns:

The PypeIt parameter set adjusted for configuration specific parameter values.

Return type:

ParSet

classmethod default_pypeit_par()[source]

Return the default parameters to use for this instrument.

Returns:

Parameters required by all of PypeIt methods.

Return type:

PypeItPar

get_detector_par(det, hdu=None)[source]

Return metadata for the selected detector.

Parameters:
  • det (int) – 1-indexed detector number.

  • hdu (astropy.io.fits.HDUList, optional) – The open fits file with the raw image of interest. If not provided, frame-dependent parameters are set to a default.

Returns:

Object with the detector metadata.

Return type:

DetectorContainer

header_name = 'F2'

Name of the spectrograph camera or arm from the Header. Usually the INSTRUME card.

name = 'gemini_flamingos2'

The name of the spectrograph. See Spectrographs for the currently supported spectrographs.

supported = True

Flag that PypeIt code base has been sufficiently tested with data from this spectrograph that it is officially supported by the development team.

class pypeit.spectrographs.gemini_flamingos.GeminiFLAMINGOSSpectrograph[source]

Bases: Spectrograph

Base class for the Gemini FLAMINGOS spectrograph.

init_meta()[source]

Define how metadata are derived from the spectrograph files.

That is, this associates the PypeIt-specific metadata keywords with the instrument-specific header cards using meta.

ndet = 1

Number of detectors for this instrument.

telescope = Parameter     Value                Default  Type        Callable ---------------------------------------------------------------- name          GEMINI-S             KECK     str         False    longitude     -70.7366833333333    None     int, float  False    latitude      -30.240741666666672  None     int, float  False    elevation     2749.999999999238    None     int, float  False    fratio        None                 None     int, float  False    diameter      8.1                  None     int, float  False    eff_aperture  None                 None     int, float  False   

Instance of TelescopePar providing telescope-specific metadata.

url = 'https://www.gemini.edu/instrumentation/flamingos-2'

Reference url