measure_1d_profile_apertures

dysmalpy.utils.measure_1d_profile_apertures(cube, rap, pa, spec_arr, dr=None, center_pixel=None, ap_centers=None, spec_mask=None, estimate_err=False, nmc=100, profile_direction='positive', debug=False)[source]

Measure the 1D rotation curve using equally spaced apertures along a defined axis

Parameters:
  • cube (ndarray) – Cube to measure the 1D profile on

  • rap (float) – Radius of the circular apertures in pixels

  • dr (float) – Distance between the circular apertures in pixels

  • center_pixel (tuple of int) – Central pixel that defines r = 0

  • pa (float) – Position angle of the line that the circular apertures lie on

  • spec_arr (ndarray) – The spectral array (i.e. wavelengths, frequencies, velocities, etc)

  • spec_mask (ndarray) – Boolean mask to apply to the spectrum to exclude from fitting

  • estimate_err (bool, optional) – True or False to use Monte Carlo to estimate the errors on the fits

  • nmc (int, optional) – The number of trials in the Monte Carlo analysis to use.

Returns:

  • centers (ndarray) – The radial offset from the central pixel in pixels

  • flux (ndarray) – The integrated best fit “flux” for each aperture

  • mean (ndarray) – The best fit mean of the Gaussian profile in the same units as spec_arr

  • disp (ndarray) – The best fit dispersion of the Gaussian profile in the same units as spec_arr

Note: flux, mean, and disp will be Nap x 2 arrays if estimate_err = True where Nap is the number of apertures that are fit. The first row will be best fit values and the second row will contain the errors on those parameters.