Description Usage Arguments Value Note Author(s) See Also Examples
View source: R/snap.write.block.2.R
Function to add blocks to an existing format 2 snapshot file. First it checks the data input and uses snap.select.type.2
to define block properties. Then it writes the LABEL block and the DATA block.
1 | snap.write.block.2(file, label, inp, ndim, type)
|
file |
Name of the file to be opened to append the blocks. |
label |
LABEL of the block to be added. |
inp |
Input array of data. In general a data frame if dim of 3, then x,y,z are expected in the data frame. |
ndim |
OPTIONAL: dimensions of the input array usually 3 or 1 dimentions. |
type |
OPTIONAL/DEPRECATED. |
No value returned. Called for the side-effect of writing out a binary Gadget format-2 snapshot file.
Note that you need already a file with a header. You can generate it with snap.write.head.2
.
Federico Stasyszyn
snap.read.2
, snap.add.head.1
, snap.write.head.2
, snap.gen.param
1 | #None yet!
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.