Kinematic Models#

class KinModels#

This top level class only contains the functions to make the velocity maps. The rest will be specific to each sub class.

__init__()#

Initialize a new kinematic model.

Creates a base kinematic model object with velocity field calculations using arctangent rotation curve parameterization.

v_rad(x, y, PA, i, Va, r_t, r)#

Radial velocity component

v(x, y, PA, i, Va, r_t)#

2D velocity field calculation

v_int(x, y, PA, i, Va, r_t)#

Integrated velocity field calculation

vel1d(r, Va, r_t)#

1D velocity profile

set_main_bounds(factor, wave_factor, x0, x0_vel, y0, y0_vel)#

Set basic configuration parameters for the kinematic model.

Parameters:
  • factor (int) – Spatial oversampling factor

  • wave_factor (int) – Wavelength oversampling factor

  • x0 (float) – Morphological centroid positions (pixels)

  • y0 (float) – Morphological centroid positions (pixels)

  • x0_vel (float) – Velocity centroid positions (pixels)

  • y0_vel (float) – Velocity centroid positions (pixels)

Notes

All priors (morphological and kinematic) are set separately via set_priors_from_config() or set_parametric_priors().

rescale_to_mask(array, mask)#

Rescale the bounds to the mask

class Disk(direct_shape, factor, x0_vel, mu_y0_vel, r_eff)#

Disk kinematic and morphological model for parametric fitting.

Represents a single galactic disk with Sersic morphology and arctangent rotation curve. Handles prior setting, parameter sampling, and model evaluation for MCMC fitting.

Parameters:
  • direct_shape (tuple or int) – Shape of the direct image

  • factor (int) – Spatial oversampling factor

  • x0_vel (float) – Initial guess for x-velocity center

  • mu_y0_vel (float) – Initial guess for y-velocity center

  • r_eff (float) – Effective radius in pixels

Variables:
  • im_shape (tuple) – Image dimensions

  • factor (int) – Oversampling factor

  • x0 (float) – Morphological x-center

  • y0 (float) – Morphological y-center

__init__(*args: Any, **kwargs: Any) None#