This function is used to read in data from the initial conditions file.
load_init(init, vars)
Character string giving the connection of the initial conditions netcdf file.
The filename usually contains init
and ends in .nc
.
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).
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
# NOT RUN {
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)
# }
Run the code above in your browser using DataLab