Emission-line Modeling

Analysis class: mangadap.proc.emissionlinemodel.EmissionLineModel

Reference root: $MANGA_SPECTRO_ANALYSIS/$MANGADRP_VER/$MANGADAP_VER/[PLATE]/[IFUDESIGN]/ref

Reference file: manga-[PLATE]-[IFUDESIGN]-[DRPQA_KEY]-[BIN_KEY]-[CONTINUUM_KEY]-[ELFIT_KEY].fits.gz

Config files: $MANGADAP_DIR/python/mangadap/config/emission_line_modeling

Example config: efitmpl9.ini

[default]
 key                  = EFITMPL9
 fit_method           = sasuke
 minimum_snr          = 0.0
 deconstruct_bins     = ignore
 mom_vel_name         = Ha-6564
 mom_disp_name
 waverange
 artifact_mask        = BADSKY
 emission_lines       = ELPMPL9
 etpl_line_sigma_mode = offset
 etpl_line_sigma_min  = 10
 baseline_order
 window_buffer
 reject_boxcar        = 101
 continuum_templates  = MASTARHC
 velscale_ratio       = 1
 bias
 moments
 degree
 mdegree              = 14
 internal_reddening
Important class dependencies:
Algorithm:
  • Setup the fitting method:

    • Instantiate the mangadap.util.pixelmask.SpectralPixelMask using the artifact_mask and waverange from config.

      • The BADSKY artifact mask is read and used to build an mangadap.par.artifactdb.ArtifactDB instance that masks the typical residuals around the strong sky line at 5577 angstroms.
      • The waverange config parameter can be used to limit the fitted spectral range; will fit as much as possible if no range is provided.
    • If fit_method = elric, baseline_order sets the Legendre function used to set the baseline in each fitting window and window_buffer sets the +/- window in angstroms around each line to use during the fit.

    • If fit_method = sasuke:

      • etpl_line_sigma_mode and etpl_line_sigma_min determines the method used to set the emission-line template instrumental dispersion; the available options are set by mangadap.proc.sasuke.Sasuke.etpl_line_sigma_options().
      • reject_boxcar sets the size of the boxcar (pixels) to use for the rejection iterations.
      • The templates used to fit the stellar continuum during the emission-line modeling can be different than those used during the stellar kinematics fit. Use continuum_templates and velscale_ratio to select the new templates and set their sampling. If continuum_templates is not given velscale_ratio is ignored and the templates are identical between the two modules. If the templates are switched, a new mangadap.proc.templatelibrary.TemplateLibrary object is instantiated. When switching template libraries, the templates must have their resolution matched to the MaNGA data so that the corrected stellar kinematics from the existing mangadap.proc.stellarcontinuummodel.StellarContinuumModel instance can be held fixed during the fitting.
      • bias, degree, mdegree are passed directly to pPXF (at the moment moments is ignored and always 2!)
      • internal_reddening = True forces use of the Calzetti (2000) attenuation law; will override any non-zero mdegree.
    • If deconstruct_bins = True, method will fit the emission lines on an individual spaxel basis instead of the binned spectra; currently this can only be used if fit_method = sasuke.

    • If mom_vel_name or mom_disp_name is defined, the DAP will use the corresponding moment measurements from the mangadap.proc.emissionlinemoments.EmissionLineMoments object to set the initial guess for the velocity (default is the NSA redshift) and/or velocity dispersion (default is 100 km/s) for the fit.

  • If requested, call the “Elric” fitter:

  • Or, call “Sasuke” fitter: