mufasa#

Submodules

UltraCube

The mufasa.UltraCube module provides tools for processing, analyzing, and visualizing spectral cubes, particularly for fitting multi-component spectral models.

aic

The mufasa.aic module provides tools for statistical evaluation of spectral cube models, including Akaike Information Criterion (AIC) calculations, corrected AIC (AICc), and chi-squared metrics.

clean_fits

The mufasa.clean_fits module provides functionality for handling multi-component fitting results, cleaning parameter maps, and generating exclusive single- and two-component maps.

convolve_tools

The mufasa.convolve_tools module provides tools for processing spectral cubes with spatial convolution, signal-to-noise masking, and edge trimming.

deblend_cube

The mufasa.deblend_cube module provides functionality for deblending hyperfine structures in spectral cubes, allowing for the reconstruction of fitted models with Gaussian lines accounting for optical depths.

exceptions

The mufasa.exceptions module provides custom exceptions for handling errors specific to spectral fitting and signal-to-noise ratio (SNR) masking.

guess_refine

The mufasa.guess_refine module provides tools for cleaning, normalizing, and interpolating fitted parameter maps and generating refined guesses for fitting.

master_fitter

The mufasa.master_fitter module provides tools for automated spectral fitting, refinement, and analysis of multi-component spectral models.

moment_guess

The mufasa.moment_guess module provides utilities for generating initial guesses, refining moment maps, and handling physical parameter calculations such as excitation temperature and optical depth.

multi_v_fit

The mufasa.multi_v_fit module provides functionality for preprocessing, masking, and refining guesses for spectral line fitting, as well as utility functions for calculating moments, signal-to-noise ratios, and handling parameter constraints.

signals

The mufasa.signals module provides robust tools for preprocessing spectral data, including RMS estimation, signal masking, spatial trimming, and moment calculations.

slab_sort

The mufasa.slab_sort module provides utilities for sorting and refining two-component spectral data, including functions for swapping components based on linewidth or distance metrics relative to reference maps.

Sub-packages