pypeit.spectrographs.vlt_fors module
Module for VLT FORS (1 and 2)
- class pypeit.spectrographs.vlt_fors.VLTFORS2Spectrograph[source]
Bases:
VLTFORSSpectrograph
Child to handle VLT/FORS2 specific code
- camera = 'FORS2'
Name of the spectrograph camera or arm. This is used by specdb, so use that naming convention
- comment = '300I, 300V gratings'
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
- Returns
The PypeIt parameter set adjusted for configuration specific parameter values.
- Return type
- configuration_keys()[source]
Return the metadata keys that define a unique instrument configuration.
This list is used by
PypeItMetaData
to identify the unique configurations among the list of frames read for a given reduction.- Returns
List of keywords of data pulled from file headers and used to constuct the
PypeItMetaData
object.- Return type
- get_detector_par(det, hdu=None)[source]
Return metadata for the selected detector.
- Parameters
det (
int
) – 1-indexed detector number. ESO writes each of the two detectors to separate files. Whenhdu
is provided, this is ignored and instead the chip is determined by the header parameter “EXTNAME”. Ifhdu
is None (for automatically generated documentation only), this can be used to set the chip (1 or 2) that is returned.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
- header_name = 'FORS2'
Name of the spectrograph camera or arm from the Header. Usually the INSTRUME card.
- name = 'vlt_fors2'
The name of the spectrograph. See Spectrographs for the currently supported spectrographs.
- parse_dither_pattern(file_list, ext=None)[source]
Parse headers from a file list to determine the dither pattern.
- Parameters
strings) (file_list (list of) – List of files for which dither pattern is desired
(int (ext) – Extension containing the relevant header for these files. Default=None. If None, code uses self.primary_hdrext
optional) – Extension containing the relevant header for these files. Default=None. If None, code uses self.primary_hdrext
- Returns
dither_pattern, dither_id, offset_arcsec
dither_pattern (str numpy.ndarray) – Array of dither pattern names
dither_id (str numpy.ndarray) – Array of dither pattern IDs
offset_arc (float numpy.ndarray) – Array of dither pattern offsets
- raw_header_cards()[source]
Return additional raw header cards to be propagated in downstream output files for configuration identification.
The list of raw data FITS keywords should be those used to populate the
configuration_keys()
or are used inconfig_specific_par()
for a particular spectrograph, if different from the name of the PypeIt metadata keyword.This list is used by
subheader_for_spec()
to include additional FITS keywords in downstream output files.- Returns
List of keywords from the raw data files that should be propagated in output files.
- Return type
- 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.vlt_fors.VLTFORSSpectrograph[source]
Bases:
Spectrograph
Child of Spectrograph to handle VLT/FORS specific code Parent for FORS1 and FORS2
- check_frame_type(ftype, fitstbl, exprng=None)[source]
Check for frames of the provided type.
- Parameters
ftype (
str
) – Type of frame to check. Must be a valid frame type; see frame-type Definitions.fitstbl (astropy.table.Table) – The table with the metadata for one or more frames to check.
exprng (
list
, optional) – Range in the allowed exposure time for a frame of typeftype
. Seepypeit.core.framematch.check_frame_exptime()
.
- Returns
Boolean array with the flags selecting the exposures in
fitstbl
that areftype
type frames.- Return type
- compound_meta(headarr, meta_key)[source]
Methods to generate metadata requiring interpretation of the header data, instead of simply reading the value of a header card.
- Parameters
headarr (
list
) – List of astropy.io.fits.Header objects.meta_key (
str
) – Metadata keyword to construct.
- Returns
Metadata value read from the header(s).
- Return type
- configuration_keys()[source]
Return the metadata keys that define a unique instrument configuration.
This list is used by
PypeItMetaData
to identify the unique configurations among the list of frames read for a given reduction.- Returns
List of keywords of data pulled from file headers and used to constuct the
PypeItMetaData
object.- Return type
- classmethod default_pypeit_par()[source]
Return the default parameters to use for this instrument.
- Returns
Parameters required by all of PypeIt methods.
- Return type
- 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 VLT KECK str False longitude -70.40498688000002 None int, float False latitude -24.627439409999997 None int, float False elevation 2668.999999999649 None int, float False fratio None None int, float False diameter 8.2 None int, float False eff_aperture 51.2 None int, float False
Instance of
TelescopePar
providing telescope-specific metadata.
- url = 'https://www.eso.org/sci/facilities/paranal/instruments/fors.html'
Reference url