pypeit.spectrographs.jwst_nirspec module

Module for JWST NIRSpec specific methods.

class pypeit.spectrographs.jwst_nirspec.JWSTNIRSpecSpectrograph[source]

Bases: Spectrograph

Child to handle JWST NIRSpec specific code

camera = 'NIRSPEC'

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

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 = 'jwst_nirspec'

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

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.

name = 'jwst_nirspec'

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

ndet = 2

Number of detectors for this instrument.

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.

telescope = Parameter     Value  Default  Type        Callable -------------------------------------------------- name          JWST   KECK     str         False    longitude     0.0    None     int, float  False    latitude      0.0    None     int, float  False    elevation     0.0    None     int, float  False    fratio        None   None     int, float  False    diameter      6.5    None     int, float  False    eff_aperture  None   None     int, float  False   

Instance of TelescopePar providing telescope-specific metadata.

url = 'https://jwst-docs.stsci.edu/jwst-near-infrared-spectrograph'

Reference url