obs_galaxy | R Documentation |
The purpose of this function is to produce the observable features of simulation data when taking mock IFU observations.
obs_galaxy(part_data, inc_rad)
part_data |
A data.frame describing the particle positions and velocities. |
inc_rad |
The observed inclination angle in radians. |
Returns a data frame containing the original particle information plus the observed
z-position ($z_obs
), observed radial position ($r_obs
) and the observed line of
sight velocity ($vy_obs
) at the given inclination.
galaxy_data = data.frame("x"=stats::rnorm(100), "y"=stats::rnorm(100),
"z"=stats::rnorm(100), "vx"=stats::rnorm(100),
"vy"=stats::rnorm(100), "vz"=stats::rnorm(100))
observed_data = obs_galaxy(galaxy_data, inc_rad = 1.047)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.