mufasa.UltraCube#
The mufasa.UltraCube module provides tools for processing, analyzing, and visualizing spectral cubes, particularly for fitting multi-component spectral models.
Classes
A subclass of UltraCube that includes directory management for parameter maps and model fits. |
|
A framework for multi-component spectral cube analysis and model fitting. |
Functions
Calculate the corrected Akaike Information Criterion (AICc) for a spectral cube model. |
|
Calculate the relative likelihood of two models based on their AICc values. |
|
Calculate the chi-squared (χ²) or reduced chi-squared value for a spectral cube model fit. |
|
Calculate the residual sum of squares (RSS) for a spectral cube model fit. |
|
Convolve the spatial dimensions of a spectral cube by a specified factor. |
|
Expand a 3D mask along the spectral axis by a specified buffer size. |
|
Fit the spectral cube using the specified fitting type. |
|
Calculate the peak value of a model cube at each spatial pixel. |
|
Compute log-likelihood ratio maps for model comparisons up to a specified number of components. |
|
Select the best 2-component parameter cube based on AICc likelihood thresholds. |
|
Calculate the chi-squared or reduced chi-squared value for a spectral cube. |
|
Calculate a masked moment of a spectral cube. |
|
Calculate the residual between the data cube and the model cube. |
|
Compute a robust estimate of the root mean square (RMS) from the fit residuals. |
|
Calculate the residual sum of squares (RSS) for a spectral cube model fit. |
|
Check if a given unit is equivalent to Kelvin (K). |
|
Load the spectral fit results from a .fits file. |
|
Save the fitted parameter cube to a .fits file with the appropriate header. |
|
Convert the unit of a spectral cube to Kelvin (K). |