read_time_area: Read Gadget timefile

Description Usage Arguments Value Examples

Description

This function reads in a Gadget timefile using either the specified timefile name or from the main file

Usage

1
2
3
read_gadget_timefile(timefile, main = NULL, path = NULL)

read_gadget_areafile(areafile, main = NULL, path = NULL)

Arguments

timefile

Character. The name of the file to read in

main

Optional. A list of class gadget_main

path

Optional. Character vector of path to the directory where Gadget files are located

Value

A list of class gadget_time

Examples

1
2
3
4
path <- system.file(gad_mod_dir, package = "gadgetSim")
main <- read_gadget_main(path = path)
timefile <- read_gadget_timefile(main = main, path = path)
area <- read_gadget_areafile(main = main, path = path)

inspktrgadget/gadgetSim documentation built on May 10, 2019, 9:51 a.m.