load_init: This function is used to read in data from the initial...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/load-init.R

Description

This function is used to read in data from the initial conditions file.

Usage

1
load_init(init, vars)

Arguments

init

Character string giving the connection of the initial conditions netcdf file. The filename usually contains init and ends in .nc.

vars

Vector of character strings giving the variables to extract from the netcdf file.

Value

A list of dataframes with columns atoutput, polygon and layer (if present).

Author(s)

Alexander Keth

See Also

Other load functions: load_box, load_bps, load_dietcheck, load_fgs, load_init_age, load_nc_physics, load_nc, load_rec, load_spec_mort, load_txt

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
d <- system.file("extdata", "setas-model-new-trunk", package = "atlantistools")
init <- file.path(d, "INIT_VMPA_Jan2015.nc")

load_init(init, vars = "Planktiv_S_Fish1_Nums")
load_init(init, vars = c("Planktiv_S_Fish2_ResN", "Planktiv_S_Fish3_ResN"))
load_init(init, vars = "Megazoobenthos_N")

## Not run: 
dir <- "C:/Users/siebo/Documents/Atlantis/BalticAtlantis/run_files_73days_Nej"
init <- file.path(dir, "new_init_Baltic_05Dec2015_v2.nc")
vars <- "Sprat1_ResN"
load_init(init = init, vars = vars)

## End(Not run)

atlantistools documentation built on Aug. 16, 2017, 9:05 a.m.