enst_graph | R Documentation |
Either generate graphs of a halo(s) or return the data.tables used to generate the graphs for their mean density weighted enstrophy against look back time of the simulation and or the signal to noise ratio of the enstrophy.
Multiple halos can be queued and all saved to the same directory.
The red abline given in the signal to noise ratio figure is the 1:1 ratio.
enst_graph( halo.vec, halo.directory, return.data = F, graph.directory = NULL, g.ind = 3, n.max = 6, snapshot.nums = seq(70, 199) )
halo.vec |
A vector containing the names of the halo hdf5 files for which graphs will be produced |
halo.directory |
A string with the location of the directory containing the halos to be retrieved |
return.data |
A boolean value, if True returns a list of two data.tables containing the data used to create the graphs. Skipping the graphing stage. |
graph.directory |
An optional value, A string containing the path to the directory where the graphs will be exported given return.data is False If NULL the graphs will be exported to the working directory. |
g.ind |
The graph index, a numerical value of 1, 2 or 3 indicating which graph(s) to be produced. 1: only make graphs of enstrophy against time 2: only makes graphs of signal to noise ratio 3: make both graphs |
n.max |
The maxium layer of the adaptive mesh to be used, sets the Gobal.nmax |
snapshot.nums |
A vector containing all the snapshots from the hdf5 file which are to be used in making the graphs. |
make both enstrophy against time and signal to noise for halos 1,2 and 3: halo.vec = c("halo_1", "halo_2", "halo_3") halo.directory = "/where/halos/are/saved" graphs.directory = "/where/graphs/will/be/saved" enstrophy_graphs(halo.vec, halo.directory, graphs.directory, g.ind = 3) return a list of two data.tables
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.