Description Usage Arguments Value Author(s) See Also Examples
This function is used to read in data from the initial conditions file.
1 | load_init(init, vars)
|
init |
Character string giving the connection of the initial conditions netcdf file.
The filename usually contains |
vars |
Vector of character strings giving the variables to extract from the netcdf file. |
A list of dataframes with columns atoutput, polygon and layer (if present).
Alexander Keth
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
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.