Description Details Author(s) Examples
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.
Package: | snapshot |
Type: | Package |
Version: | 2.0.1 |
Date: | 2020-10-05 |
License: | GPL-3 |
Aaron Robotham & Federico Stasyszyn
Maintainer: Aaron Robotham <aaron.robotham@uwa.edu.au>
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.