get_velocity_field#
- sunkit_image.asda.get_velocity_field(
- gamma,
- rcore,
- ratio_vradial,
- x_range,
- y_range,
- x=None,
- y=None,
Calculates the velocity field in a meshgrid generated with
x_rangeandy_range.- Parameters:
gamma (
float, optional) – A replacement forvmaxand only used if bothgammaandrcoreare notNone. Defaults toNone.rcore (
float, optional) – A replacement forrmaxand only used if bothgammaandrcoreare notNone. Defaults toNone.ratio_vradial (
float, optional) – Ratio between expanding/shrinking speed and rotating speed. Defaults to 0.x_range (
list) – Range of the x coordinates of the meshgrid.y_range (
list) – range of the y coordinates of the meshgrid.x (
numpy.meshgrid, optional) – If both are given,x_rangeandy_rangewill be ignored. Defaults to None``.y (
numpy.meshgrid, optional) – If both are given,x_rangeandy_rangewill be ignored. Defaults to None``.
- Returns:
tuple– The generated velocity field(vx, vy).