A simple growth model of Saccharina latissima cultivated in Scandinavia
Description
Data and R code for the paper "A simple growth model of Saccharina latissima cultivated in Scandinavia: Theoretical and practical implications" by Niels Holst, Teis Boderskov and Annette Bruhn. Paper submitted to Algal Research, August 2024.
Files
Steps to reproduce
(1) Download and unzip the data_and_code.zip file. (2) Run lines 1-18 in main.R to check that you have all the necessary R packages (libraries) installed. (3) Install any missing libraries and go back to step 2; otherwise continue. (4) Edit line 23 in the main.R file to point to the folder, where you unzipped the downloaded file. (5) Run line 23 in main.R to check that you specified the correct folder. (6) Fix any errors in line 23 and return to step 5; otherwise continue. (7) Run the whole main.R script, e.g. overnight, as it might take a few hours to complete. (8) Find all outputs (figures) in the 'output' folder that was created by the main.R script, as a sibling folder to the 'obs' and 'R' folders. (9) The outcome of the most time consuming steps in main.R are automatically saved in the 'output' folder as '.Rdata' files. On subsequent runs of main.R, these Rdata files will shortcut the execution and make it much faster (< 5 minutes).