interpolate.positions: Interpolate and extrapolate the position of particles.

View source: R/interpolate.positions.R

interpolate.positionsR Documentation

Interpolate and extrapolate the position of particles.

Description

Determines from the given look-back time and time-steps of a set of particles positions needs to be extrapolated or interpolated.

If a particles position needs to be interpolated, the particles positions will be estimated using a cubic fitted between the two given snapshots to fit a position within the given time step.

Usage

interpolate.positions(track, snapshots, t)

Arguments

track

A list containing a read in halo from Surfsuite.

snapshots

A data.frame object containing particle id's, velocities and positions at given redshifts and look-back times based on the track list.

t

A value for the look-back time Gyrs for the step to be interpolated or extrapolated to.


Will-McD/ENSTvisualise documentation built on June 24, 2022, 5:13 p.m.