synthpop.modules.kinematics.kinematics_from_grid
Kinematic module that interpolates values from a grid
Classes
Grid interpolation kinematic module |
Module Contents
- class synthpop.modules.kinematics.kinematics_from_grid.KinematicsFromGrid(moment_file=None, sun=None, **kwargs)
Bases:
synthpop.modules.kinematics._kinematics.KinematicsGrid interpolation kinematic module
Attributes
- kinematics_func_namestr
name of the Kinematics Class
- moment_filestr
name of a file containing a grid of kinematic information required columns are: r, z, v_phi, sigma_phi, signa_r, sigma_z units must be kpc for distance, and km/s for velocity file must be whitespace delimited and have comments marked with ‘#’
- interpolate_v_phi
- interpolate_sigma_phi
- interpolate_sigma_r
- interpolate_sigma_z
- kinematics_func_name = 'kinematics_from_grid'
- sun
- draw_random_velocity(x: np.ndarray or float, y: np.ndarray or float, z: np.ndarray or float, **kwargs) Tuple[numpy.ndarray, numpy.ndarray, numpy.ndarray]
Generate a random velocities u,v,w by using a velocity dispersion
Parameters
- x, y, znparray, float [kpc]
galactocentric coordinates
Returns
- u, v, wndarray [km/s]
velocity in galactocentric x,y,and z direction.