mufasa.master_fitter#
The mufasa.master_fitter module provides tools for automated spectral fitting, refinement, and analysis of multi-component spectral models.
Classes
A class to represent the observed spectral cube to perform the model fits. |
Functions
Expand fits in a region by incrementally fitting pixels beyond a defined log-likelihood threshold boundary. |
|
Fit the convolved residual of the best-fit two-component spectral model with a one-component model. |
|
Expand fits around a region based on model log-likelihood thresholds and target signal-to-noise depth. |
|
Generate initial guesses for fitting a two-component spectral model with wide velocity separation. |
|
Retrieve the best-fit model cube for the given Region object. |
|
Calculate the residual cube for the best-fit two-component model. |
|
Generate the residual spectral cube for the best-fit two-component model. |
|
Generate a convolved residual cube for the best-fit two-component spectral model. |
|
Calculate the signal-to-noise ratio (SNR) map for the best-fit two- component model. |
|
Generate and save a convolved version of the spectral cube for a given region. |
|
Fit a model to the convolved cube and save the results. |
|
Fit a model to the original spectral cube and save the results. |
|
Identify local pixels with significantly lower relative log-likelihood (lnk) values compared to their neighbors. |
|
Return pixels at the edge of structures with values greater than lnk_thresh, or pixels less than lnk_thresh enclosed within the structures. |
|
Generate initial guesses for refitting based on neighboring pixels or convolution. |
|
Generate a 2D sky projection header from a 3D spectral cube header. |
|
Perform a two-component fit iterantively through two steps. |
|
Perform a two-component fit on the data cube within a Region object. |
|
Refit pixels to recover compoents with wide velocity separation for 2-component models. |
|
Refit pixels with poor 2-component fits, as determined by the log- likelihood of 2- and 1- compoent fits, using specified models. |
|
Refit pixels with fits that appears marginally okay, as deterined by the specified log-likelihood threshold provided. |
|
Refit the cube by using the previous fit result as guesses, but with the front and rear components switched. |
|
Refit pixels marked by the mask as "bad" and adopt the new model if it is determined to be better. |
|
Replace parameter values in a parameter cube with those from a reference cube for specific pixels. |
|
Replace RSS-related maps in a UltraCube object for specific components. |
|
Save the best two-component fit results for the specified region. |
|
Save a 2D map as a FITS file. |
|
Save the updated parameter maps for specified components. |
|
Perform a two-component fit for the cube using default moment map guesses. |