Description Usage Arguments Details Value Author(s) See Also Examples
This function allows the user to read in format 1 Gadget binaries. It keeps the particle information and header information in separate components of a list.
1 | snap.read.1(file, thin=1, verbose=FALSE)
|
file |
The full path to the Gadget snapshot to be read in. |
thin |
Scalar. How much should the particle data be thinned? thin=1 means all data is read in, thin=10 means every 10th particle is read in. Larger numbers will create more sub-sampled data, and will hugely increase the read-in speed and reduce the memory required. This is useful for making images where only a small fraction of Gadget particles are required. |
verbose |
Logical. If TRUE then function will print out the current reading processes. If FALSE the read is silent. |
When using thinning you will generally only see a speed-up in reading times when the multiple is quite large (over 500), assuming the initial full snapshot (thin=1) can be fully read into RAM. This is because of the extra overheads involved in stop-starting the scanning and reading when thinning. If the initial snapshot cannot be read into RAM then the speed up will be much larger and witnessed with much smaller multiples (basically whatever allows the data to be comfortably read into RAM).
part |
A data.frame containing the main particle level information. Columns included are:
| ||||||||||||||||||||||||||||||||||||||||||
head |
A list containing various header information as list elements. These are:
|
Aaron Robotham
snap.write.1
,snap.add.head.1
,snap.gen.param
1 2 3 4 | ## Not run:
temp=snapread('somepath/snapshot_XXX')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.