unwrap: Unwarp a halo

View source: R/unwrap.R

unwrapR Documentation

Unwarp a halo

Description

Halos can sometimes get wrapped around the edges of their box and as a result not be fully connected. This function takes a snapshot and unwraps the halo.

It is assumed that the box size is 210 Mpc/h

Usage

unwrap(frame, snap = 1, half.box.size = 105)

Arguments

frame

A list or vector type object containing the partice positions at a given time

snap

A numeric value for the snapshot number

half.box.size

An optional value for the box width / 2 in simulaiton units (Mpc/h). It is naturally set as 105 as the simulation boxes are 210 Mpc/h


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