obs_galaxy: Constructing galaxy observation data from the Gadget output...

View source: R/RcppExports.R

obs_galaxyR Documentation

Constructing galaxy observation data from the Gadget output file data.

Description

The purpose of this function is to produce the observable features of simulation data when taking mock IFU observations.

Usage

obs_galaxy(part_data, inc_rad)

Arguments

part_data

A data.frame describing the particle positions and velocities.

inc_rad

The observed inclination angle in radians.

Value

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.

Examples

  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)

kateharborne/SimSpin documentation built on March 27, 2024, 7:10 a.m.