mangadap.survey.manga_dap module
Provides the main wrapper function for the MaNGA DAP.
Copyright © 2019, SDSS-IV/MaNGA Pipeline Group
- mangadap.survey.manga_dap.manga_dap(cube, plan, dbg=False, log=None, verbose=0)[source]
Main wrapper function for the MaNGA DAP.
This function is designed to be called once per datacube. The
mangadap.config.analysisplan.AnalysisPlan
instance sets the types of analyses to perform on this observation. Each analysis plan results in a MAPS and model LOGCUBE file.The procedure is as follows. For each plan in
plan
:Determine basic assessments of the data, including the S/N and spaxel coordinates. See
mangadap.proc.reductionassessments.ReductionAssessment
.Bin the spectra. See
mangadap.proc.spatiallybinnedspectra.SpatiallyBinnedSpectra
.Fit the stellar continuum for stellar kinematics. See
mangadap.proc.stellarcontinuummodel.StellarContinuumModel
.Measure the emission-line moments. See
mangadap.proc.emissionlinemoments.EmissionLineMoments
.Fit parameterized line profiles to the emission lines. See
mangadap.proc.emissionlinemodel.EmissionLineModel
.Subtract the fitted emission-line models and measure the spectral indices. See
mangadap.proc.spectralindices.SpectralIndices
.Construct the primary output files based on the plan results. See
mangadap.dapfits.construct_maps_file()
andmangadap.dapfits.construct_cube_file()
.
- Verbose levels (still under development):
Nothing but errors.
Basic status updates. E.g., start and end of each block, minor progress within blocks.
Block-level and sub-function updates.
Same as above, with figures.
- Parameters:
cube (
mangadap.datacube.datacube.DataCube
) – Datacube to analyze.plan (
mangadap.config.analysisplan.AnalysisPlan
) – Object that sets the analysis plans to implement and the output paths for DAP files.dbg (
bool
, optional) – Flag to run the DAP in debug mode, see above; default is False. Limited use; still under development.log (
str
, optional) – File name for log output, see above; no log file is produced by default.verbose (
int
, optional) – Verbosity level, see above; default is 0.
- Returns:
Status flag (under development; currently always 0).
- Return type:
int