HyperfineModel#

class mufasa.spec_models.HyperfineModel.HyperfineModel(line_names=None)[source]#

Bases: BaseModel

Spectral model for multi-component fitting with hyperfine structure.

Inherits from BaseModel and applies hyperfine-specific molecular constants.

deblend(xarr, tex, tau, xoff_v, width)[source]#

Compute a spectrum without hyperfine structures.

Parameters:
  • xarr (array-like) – Frequency array in GHz.

  • tex (float) – Excitation temperature (K).

  • tau (float) – Optical depth.

  • xoff_v (float) – Velocity offset (km/s).

  • width (float) – Line width (km/s).

Returns:

spectrum – Computed spectrum without hyperfine structure.

Return type:

array-like

multi_v_spectrum(xarr, *args)[source]#

Generate a multi-component spectrum with hyperfine structure.

Parameters:
  • xarr (array-like) – Frequency array in GHz.

  • args (list) – Model parameters (velocity, width, excitation temperature, optical depth) for each component, provided in sequence.

Returns:

spectrum – Computed spectrum with hyperfine components.

Return type:

array-like