mufasa.signals#
The mufasa.signals module provides robust tools for preprocessing spectral data, including RMS estimation, signal masking, spatial trimming, and moment calculations.
Functions
Estimate the mode of the data using a histogram. |
|
Calculate moments of the signals in a cube. |
|
Make a robust RMS estimate. |
|
Provide a 3D mask indicating signal regions based on RMS and SNR threshold. |
|
Calculate the peak signal-to-noise ratio of the cube. |
|
Find the velocity corresponding to the peak emission. |
|
Return a mask centered on a reference velocity with a spectral window. |
|
Refine the RMS estimate by masking out signal regions. |
|
Refine a signal mask by removing noisy features and expanding the mask. |
|
Remove spatial edges from a cube. |
|
Trim edges using a 2D mask. |
|
Estimate the velocity centroid based on peak emission. |