MVC

class turbustat.statistics.MVC(centroid, moment0, linewidth, header)[source] [edit on github]

Bases: object

Implementation of Modified Velocity Centroids (Lazarian & Esquivel, 03)

Parameters:

centroid : numpy.ndarray

Normalized first moment array.

moment0 : numpy.ndarray

Moment 0 array.

linewidth : numpy.ndarray

Normalized second moment array

header : FITS header

Header of any of the arrays. Used only to get the spatial scale.

Methods Summary

Methods Documentation

compute_pspec()[source] [edit on github]

Compute the 2D power spectrum.

The quantity calculated here is the same as Equation 3 in Lazarian & Esquivel (2003), but the inputted arrays are not in the same form as described. We can, however, adjust for the use of normalized Centroids and the linewidth.

An unnormalized centroid can be constructed by multiplying the centroid array by the moment0. Velocity dispersion is the square of the linewidth subtracted by the square of the normalized centroid.

compute_radial_pspec(return_index=True, wavenumber=False, return_stddev=False, azbins=1, binsize=1.0, view=False, **kwargs)[source] [edit on github]

Computes the radially averaged power spectrum. This uses Adam Ginsburg’s code (see https://github.com/keflavich/agpy). See the above url for parameter explanations.

run(phys_units=False, verbose=False)[source] [edit on github]

Full computation of MVC.

Parameters:

phys_units : bool, optional

Sets frequency scale to physical units.

verbose: bool, optional

Enables plotting.