snapshot-package: Gadget N-body cosmological simulation code snapshot format 1...

Description Details Author(s) Examples

Description

Functions for reading and writing Gadget N-body format 1 and 2 snapshots. The Gadget code is popular in astronomy for running N-body / hydrodynamical cosmological and merger simulations. To find out more about Gadget see the main distribution page at www.mpa-garching.mpg.de/gadget/. Format 1 specific functions end with a ".1" suffix and format 2 specific functions end with a ".2" suffix. Generic functions have neither suffix.

Details

Package: snapshot
Type: Package
Version: 2.0.1
Date: 2020-10-05
License: GPL-3

Author(s)

Aaron Robotham & Federico Stasyszyn

Maintainer: Aaron Robotham <aaron.robotham@uwa.edu.au>

Examples

1
2
3
4
5
6
## Not run: 
temp=snap.read.1('snapshot_XXX')
temp$part[,'x']=temp$part[,'x']+10
snap.write.1(temp$part,temp$head,'snapshot_XXX_mod')

## End(Not run)

asgr/snapshot documentation built on Oct. 8, 2020, 2:52 p.m.