Description Usage Arguments Value Author(s) See Also
Reads astrophysical N-body data output by the Gadget code (versions 1/2/3/4, see https://wwwmpa.mpa-garching.mpg.de/gadget4). Binary and HDF5 formats can be read.
1 | readgadget(file, type = "auto")
|
file |
filename of file to load |
type |
character specifying the data format. Must be either of: |
Returns a list containing the particle data, structured very similarly to the HDF5 format, even for binary files. When reading a binary file, some of the entries in the header are duplicated for compatibility between old (binary) and new (HDF5) parameter names: e.g. NumPart_ThisFile=Npart
, NumPart_Total=Nall
, MassTable=Massarr
(for more, see Table 4 of https://wwwmpa.mpa-garching.mpg.de/gadget/users-guide.pdf).
Danail Obreschkow
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.