make_gadget_areafile: Make Gadget areafile

Description Usage Arguments Value Examples

Description

Creates a list of class gadget_area that can be used to write out a Gadget areafile

Usage

1
make_gadget_areafile(areas, size, temp_data)

Arguments

areas

Numeric vector describing the different areas

size

Size of each area

temp_data

Data.frame with 4 columns containing year, step, area, and mean temperature

Value

A list of class gadget_area

Examples

1
2
3
4
5
6
make_gadget_areafile(areas = 1, size = 1e6,
                     temp_data = expand.grid(year = 1:5, step = 1:4,
                                             area = 1, temp = 3))
make_gadget_areafile(areas = 1:2, size = c(1e6, 1.5e6),
                     temp_data = expand.grid(year = 1:2, step = 1:4,
                                             area = 1:2, temp = 3))

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