Last updated: 2021-08-03

Checks: 7 0

Knit directory: emlr_obs_v_XXX/

This reproducible R Markdown analysis was created with workflowr (version 1.6.2). The Checks tab describes the reproducibility checks that were applied when the results were created. The Past versions tab lists the development history.


Great! Since the R Markdown file has been committed to the Git repository, you know the exact version of the code that produced these results.

Great job! The global environment was empty. Objects defined in the global environment can affect the analysis in your R Markdown file in unknown ways. For reproduciblity it’s best to always run the code in an empty environment.

The command set.seed(20200707) was run prior to running the code in the R Markdown file. Setting a seed ensures that any results that rely on randomness, e.g. subsampling or permutations, are reproducible.

Great job! Recording the operating system, R version, and package versions is critical for reproducibility.

Nice! There were no cached chunks for this analysis, so you can be confident that you successfully produced the results during this run.

Great job! Using relative paths to the files within your workflowr project makes it easier to run your code on other machines.

Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility.

The results in this page were generated with repository version 4d7bb5a. See the Past versions tab to see a history of the changes made to the R Markdown and HTML files.

Note that you need to be careful to ensure that all relevant files for the analysis have been committed to Git prior to generating the results (you can use wflow_publish or wflow_git_commit). workflowr only checks the R Markdown file, but you know if there are other scripts or data files that it depends on. Below is the status of the Git repository when the results were generated:


Ignored files:
    Ignored:    .Rhistory
    Ignored:    .Rproj.user/

Unstaged changes:
    Modified:   code/Workflowr_project_managment.R
    Modified:   data/auxillary/params_local.rds

Note that any generated files, e.g. HTML, png, CSS, etc., are not included in this status report because it is ok for generated content to have uncommitted changes.


These are the previous versions of the repository in which changes were made to the R Markdown (analysis/config_parameterization_local.Rmd) and HTML (docs/config_parameterization_local.html) files. If you’ve configured a remote Git repository (see ?wflow_git_remote), click on the hyperlinks in the table below to view the files as they were in that past version.

File Version Author Date Message
Rmd 4d7bb5a jens-daniel-mueller 2021-08-03 test rlm model fitting
html a53656d jens-daniel-mueller 2021-08-03 Build site.
Rmd eb00453 jens-daniel-mueller 2021-08-03 test with P predictors, and oxygen, but no P*
html 88f7356 jens-daniel-mueller 2021-08-02 Build site.
Rmd 296fc33 jens-daniel-mueller 2021-08-02 test without P predictors, but oxygen
html d759279 jens-daniel-mueller 2021-08-02 Build site.
Rmd defe32c jens-daniel-mueller 2021-08-02 test without P predictors, but oxygen
html 127b801 jens-daniel-mueller 2021-07-24 Build site.
Rmd 414e9ff jens-daniel-mueller 2021-07-24 test v_201
html 1f65ef1 jens-daniel-mueller 2021-07-23 Build site.
Rmd 56485c6 jens-daniel-mueller 2021-07-23 rebuild: complete revision
html 912d90e jens-daniel-mueller 2021-07-23 Build site.
html 2477316 jens-daniel-mueller 2021-07-23 rebuild: surface dcant mapping seperate
html c9ccc00 jens-daniel-mueller 2021-07-22 Build site.
html c75b2a0 jens-daniel-mueller 2021-07-22 Build site.
Rmd 7d6951d jens-daniel-mueller 2021-07-22 surface dcant mapping seperate
html 426b2df jens-daniel-mueller 2021-07-21 Build site.
html 78fe930 jens-daniel-mueller 2021-07-21 Build site.
Rmd ee0e941 jens-daniel-mueller 2021-07-21 surface dcant mapping with preformed DIC
Rmd 3ef0100 jens-daniel-mueller 2021-07-13 complete revision
html 971ce87 jens-daniel-mueller 2021-07-13 Build site.
Rmd 89d9fcb jens-daniel-mueller 2021-07-13 complete revision
html c18a8b1 jens-daniel-mueller 2021-07-09 Build site.
Rmd 795a3b0 jens-daniel-mueller 2021-07-09 complete revision
html 910d64a jens-daniel-mueller 2021-07-02 Build site.
html 1cbf907 jens-daniel-mueller 2021-07-02 Build site.
Rmd a2c1536 jens-daniel-mueller 2021-07-02 testrun with CANYON-B NA filling
html 749d84e jens-daniel-mueller 2021-06-30 Build site.
Rmd 7fa4dbd jens-daniel-mueller 2021-06-30 added histogram
html 955f5dc jens-daniel-mueller 2021-06-29 Build site.
Rmd b7747bd jens-daniel-mueller 2021-06-29 update standard configuration
html 9480f94 jens-daniel-mueller 2021-06-29 Build site.
html d054c39 jens-daniel-mueller 2021-06-24 Build site.
Rmd ce91a31 jens-daniel-mueller 2021-06-24 test with merged slabs
html 87e2739 jens-daniel-mueller 2021-06-24 Build site.
Rmd 6e94317 jens-daniel-mueller 2021-06-24 test coarse grid rarefication
html 4fcd066 jens-daniel-mueller 2021-06-24 Build site.
Rmd ee48dee jens-daniel-mueller 2021-06-24 test coarse grid rarefication
html b960d93 jens-daniel-mueller 2021-06-24 Build site.
Rmd 79ecdc5 jens-daniel-mueller 2021-06-24 add observation grid to map
html 00dcc97 jens-daniel-mueller 2021-06-23 Build site.
Rmd 891392a jens-daniel-mueller 2021-06-23 revised bias labels
html 3b6387f jens-daniel-mueller 2021-06-18 Build site.
html 3052a6c jens-daniel-mueller 2021-06-15 Build site.
html 3cb64bd jens-daniel-mueller 2021-06-15 Build site.
html c6b3da6 jens-daniel-mueller 2021-06-14 Build site.
html 48c73fc jens-daniel-mueller 2021-06-14 Build site.
html 439ee80 jens-daniel-mueller 2021-06-11 Build site.
html 33ffcab jens-daniel-mueller 2021-06-10 Build site.
html 7e1f407 jens-daniel-mueller 2021-06-10 Build site.
html 2cbe18c jens-daniel-mueller 2021-06-10 added zonal mean section control plots
html 69c79d0 jens-daniel-mueller 2021-06-08 Build site.
html 1772903 jens-daniel-mueller 2021-06-07 Build site.
html 594ed9a jens-daniel-mueller 2021-06-04 Build site.
html db7df0e jens-daniel-mueller 2021-06-04 rebuild without overlapping eras
Rmd 71f97a3 jens-daniel-mueller 2021-06-04 rebuild without overlapping eras
html 2edc791 jens-daniel-mueller 2021-06-04 Build site.
html 207339d jens-daniel-mueller 2021-06-03 Build site.
html 315710b jens-daniel-mueller 2021-06-03 include anomalous changes
html be90356 jens-daniel-mueller 2021-06-02 Build site.
Rmd 12eeaa6 jens-daniel-mueller 2021-06-02 test run with beta version of GLODAPv2.2021
html d37a85d jens-daniel-mueller 2021-05-31 Build site.
Rmd 1c2aff8 jens-daniel-mueller 2021-05-31 test run with beta version of GLODAPv2.2021
html 4b7a5ee jens-daniel-mueller 2021-05-28 Build site.
Rmd a61014f jens-daniel-mueller 2021-05-28 test run with cstar target variable
html 12b455a jens-daniel-mueller 2021-05-27 Build site.
Rmd ee13efb jens-daniel-mueller 2021-05-27 optional source of local params fully implemented
html 8c736a6 jens-daniel-mueller 2021-05-27 Build site.
html 25bd183 jens-daniel-mueller 2021-05-26 Build site.
Rmd e2b3434 jens-daniel-mueller 2021-05-26 generate seperate output
html 5fe3035 jens-daniel-mueller 2021-05-26 Build site.
html 4c5302d jens-daniel-mueller 2021-05-26 Build site.
html 189f362 jens-daniel-mueller 2021-05-26 Build site.
html f314fc7 jens-daniel-mueller 2021-05-26 Build site.
html cf773c5 jens-daniel-mueller 2021-05-26 Build site.
Rmd 5b0e29c jens-daniel-mueller 2021-05-26 generate seperate output
html b79cb2d jens-daniel-mueller 2021-05-20 Build site.
html 62bd574 jens-daniel-mueller 2021-05-20 Build site.
Rmd 14a7aac jens-daniel-mueller 2021-05-20 rerun overlapping eras
html 7c56c39 jens-daniel-mueller 2021-05-19 Build site.
html 0de759e jens-daniel-mueller 2021-05-13 Build site.
html 0a84f2a jens-daniel-mueller 2021-05-12 Build site.
html 969e631 jens-daniel-mueller 2021-05-12 Build site.
html d2a83bc jens-daniel-mueller 2021-04-16 Build site.
html 84b1fe3 jens-daniel-mueller 2021-04-16 Build site.
Rmd d6b0b34 jens-daniel-mueller 2021-04-16 use consistent tref
html c0a47df jens-daniel-mueller 2021-04-16 Build site.
html 50290e8 jens-daniel-mueller 2021-04-16 overlapping eras
Rmd 934e795 jens-daniel-mueller 2021-04-16 overlapping eras
html a00ec94 jens-daniel-mueller 2021-04-16 Build site.
html 7e4f671 jens-daniel-mueller 2021-04-16 Build site.
html b6fe355 jens-daniel-mueller 2021-04-16 Build site.
html 97d2272 jens-daniel-mueller 2021-04-16 Build site.
Rmd f70f4dc jens-daniel-mueller 2021-04-16 regular eras
html 81b7c6d jens-daniel-mueller 2021-04-16 Build site.
Rmd 0b33708 jens-daniel-mueller 2021-04-16 deep Pacific slabs
html ddec5b7 jens-daniel-mueller 2021-04-15 Build site.
Rmd 7084d27 jens-daniel-mueller 2021-04-15 overlapping breakpoints
html 29edae5 jens-daniel-mueller 2021-04-14 Build site.
Rmd 3ab8145 jens-daniel-mueller 2021-04-14 2008 breakpoint
html 099d566 jens-daniel-mueller 2021-04-14 Build site.
Rmd e76af46 jens-daniel-mueller 2021-04-14 2 basins, high VIF
html bb44686 jens-daniel-mueller 2021-04-14 Build site.
Rmd 6fcc01e jens-daniel-mueller 2021-04-14 AIP basins, low VIF
html bf40480 jens-daniel-mueller 2021-04-13 Build site.
Rmd fdb5a55 jens-daniel-mueller 2021-04-13 deeper slabs in Ind_Pac, higher VIF
html 9f31fe3 jens-daniel-mueller 2021-04-13 Build site.
Rmd 80e1ee3 jens-daniel-mueller 2021-04-13 rerun post-2000 with model data
html c98be84 jens-daniel-mueller 2021-04-13 Build site.
html 338dd3c jens-daniel-mueller 2021-04-09 Build site.
html a79ca2c jens-daniel-mueller 2021-04-09 included model data
html 7831fd3 jens-daniel-mueller 2021-04-09 Build site.
html 20b26d4 jens-daniel-mueller 2021-04-08 Build site.
html c0895f8 jens-daniel-mueller 2021-04-07 Build site.
html 156d5b7 jens-daniel-mueller 2021-04-07 Build site.
html eb827c9 jens-daniel-mueller 2021-04-07 Build site.
html 857bad3 jens-daniel-mueller 2021-03-24 Build site.
html 03b6009 jens-daniel-mueller 2021-03-23 removed before copying template
html 555750f jens-daniel-mueller 2021-03-23 Build site.
Rmd 2021931 jens-daniel-mueller 2021-03-23 restriction to two eras and new definition procedure
html 685338e jens-daniel-mueller 2021-03-23 Build site.
Rmd 64b4756 jens-daniel-mueller 2021-03-23 restriction to two eras and new definition procedure
html 886f523 jens-daniel-mueller 2021-03-23 Build site.
Rmd 8a3a9dd jens-daniel-mueller 2021-03-23 restriction to two eras and new definition procedure
html 10c1346 jens-daniel-mueller 2021-03-23 Build site.
Rmd b697e7a jens-daniel-mueller 2021-03-23 restriction to two eras and new definition procedure
html f155edd jens-daniel-mueller 2021-03-23 Build site.
Rmd 6601b92 jens-daniel-mueller 2021-03-23 rerun w/o post 2012 era
html 380d215 jens-daniel-mueller 2021-03-21 Build site.
Rmd 30ed6c6 jens-daniel-mueller 2021-03-21 rerun with stronger vif threshold
html 33b385b jens-daniel-mueller 2021-03-20 Build site.
html 108d6b2 jens-daniel-mueller 2021-03-20 Build site.
Rmd 2b99ba0 jens-daniel-mueller 2021-03-20 included vif removel option
html 330dcd0 jens-daniel-mueller 2021-03-20 Build site.
html 83a13de jens-daniel-mueller 2021-03-20 Build site.
Rmd fdd3c0a jens-daniel-mueller 2021-03-20 re-run standard slabs
html cf98c6d jens-daniel-mueller 2021-03-16 Build site.
Rmd a9930ea jens-daniel-mueller 2021-03-16 one thick slab
html a1d52ff jens-daniel-mueller 2021-03-15 Build site.
Rmd 7e351c0 jens-daniel-mueller 2021-03-15 re-run with quality filters and new eras
html 0bade3b jens-daniel-mueller 2021-03-15 Build site.
Rmd 9ebb3f2 jens-daniel-mueller 2021-03-15 re-run without quality filters
html 27c1f4b jens-daniel-mueller 2021-03-14 Build site.
Rmd 381eb8e jens-daniel-mueller 2021-03-14 re-run with quality filters
html af75ebf jens-daniel-mueller 2021-03-14 Build site.
Rmd e3dde84 jens-daniel-mueller 2021-03-14 test without filtering
html 5017709 jens-daniel-mueller 2021-03-11 Build site.
Rmd 7a953b4 jens-daniel-mueller 2021-03-11 test with weak filtering
html 585b07f jens-daniel-mueller 2021-03-11 Build site.
Rmd f568b8e jens-daniel-mueller 2021-03-11 cleaned cstar filtering
html 6482ed7 jens-daniel-mueller 2021-03-11 Build site.
Rmd 0ad56e3 jens-daniel-mueller 2021-03-11 cleaned filtering based on comparison to CANYON-B
html 85a5ed2 jens-daniel-mueller 2021-03-10 Build site.
html 52a5ea4 jens-daniel-mueller 2021-03-10 Build site.
html 6b260df jens-daniel-mueller 2021-03-10 Build site.
html 00688a1 jens-daniel-mueller 2021-03-05 Build site.
html 6c0bec6 jens-daniel-mueller 2021-03-05 Build site.
html 3c2ec33 jens-daniel-mueller 2021-03-05 Build site.
html af70b94 jens-daniel-mueller 2021-03-04 Build site.
html 86406d5 jens-daniel-mueller 2021-02-24 Build site.
html 3d3b4cc jens-daniel-mueller 2021-02-23 Build site.
html 7b672f7 jens-daniel-mueller 2021-01-11 Build site.
Rmd ba7cb46 jens-daniel-mueller 2021-01-11 run sensitivity test
html 33ba23c jens-daniel-mueller 2021-01-07 Build site.
Rmd 0ad30ba jens-daniel-mueller 2021-01-07 removed GLODAP gamma filter, target variable mapped by eras+era
Rmd a8c4dce jens-daniel-mueller 2020-12-23 manual activation of A16 switch
Rmd cfef575 jens-daniel-mueller 2020-12-23 Option to select era shift of A16 cruise
Rmd 31b2f90 jens-daniel-mueller 2020-12-23 corrected predictor label
Rmd f489bc9 jens-daniel-mueller 2020-12-23 switched back to regular predictors
html 318609d jens-daniel-mueller 2020-12-23 adapted more variable predictor selection
html 6949b06 jens-daniel-mueller 2020-12-23 Build site.
Rmd d3ad704 jens-daniel-mueller 2020-12-23 test 106
Rmd 16fa143 jens-daniel-mueller 2020-12-23 changed standard config parameters in template
html 0aa2b50 jens-daniel-mueller 2020-12-23 remove html before duplication
html 39113c3 jens-daniel-mueller 2020-12-23 Build site.
html 2886da0 jens-daniel-mueller 2020-12-19 Build site.
html 02f0ee9 jens-daniel-mueller 2020-12-18 cleaned up for copying template
html 965dba3 jens-daniel-mueller 2020-12-18 Build site.
html 5d452fe jens-daniel-mueller 2020-12-18 Build site.
Rmd ca65bf5 jens-daniel-mueller 2020-12-18 rebuild after final cleaning
html 7bcb4eb jens-daniel-mueller 2020-12-18 Build site.
html d397028 jens-daniel-mueller 2020-12-18 Build site.
html 7131186 jens-daniel-mueller 2020-12-17 Build site.
html 22b07fb jens-daniel-mueller 2020-12-17 Build site.
html a84ff3c jens-daniel-mueller 2020-12-17 Build site.
Rmd 40369db jens-daniel-mueller 2020-12-17 model selection criterion added
html f3a708f jens-daniel-mueller 2020-12-17 Build site.
html e4ca289 jens-daniel-mueller 2020-12-16 Build site.
html 158fe26 jens-daniel-mueller 2020-12-15 Build site.
html 7a9a4cb jens-daniel-mueller 2020-12-15 Build site.
Rmd d234226 jens-daniel-mueller 2020-12-15 rebuild with cstar_tref
html 61b263c jens-daniel-mueller 2020-12-15 Build site.
Rmd 48e9693 jens-daniel-mueller 2020-12-15 test with target variable tco2
html 4d612dd jens-daniel-mueller 2020-12-15 Build site.
Rmd e7e5ff1 jens-daniel-mueller 2020-12-15 rebuild with eMLR target variable selection
html 953caf3 jens-daniel-mueller 2020-12-15 Build site.
Rmd 97dd0d6 jens-daniel-mueller 2020-12-14 enabled auto path creation
html 42daf5c jens-daniel-mueller 2020-12-14 Build site.
html 5cc68e2 jens-daniel-mueller 2020-12-14 Build site.
Rmd 00de567 jens-daniel-mueller 2020-12-14 rebuild with new path
html 984697e jens-daniel-mueller 2020-12-12 Build site.
Rmd 7648dbc jens-daniel-mueller 2020-12-12 test 3 basins for MLR
html 3ebff89 jens-daniel-mueller 2020-12-12 Build site.
Rmd a1aaa71 jens-daniel-mueller 2020-12-12 selectable basinmask, rebuild
html 7d82772 jens-daniel-mueller 2020-12-11 Build site.
html c8acfcb jens-daniel-mueller 2020-12-11 Build site.
Rmd 24e2c07 jens-daniel-mueller 2020-12-11 selectable basinmask, try 5
html 2fd0a2a jens-daniel-mueller 2020-12-11 Build site.
Rmd cd436c1 jens-daniel-mueller 2020-12-11 selectable basinmask
html 7788175 jens-daniel-mueller 2020-12-09 Build site.
Rmd 64b795c jens-daniel-mueller 2020-12-09 added histograms after data preparation
html b01a367 jens-daniel-mueller 2020-12-09 Build site.
Rmd 71c63b0 jens-daniel-mueller 2020-12-09 rerun with variable predictor assignment
html 24a632f jens-daniel-mueller 2020-12-07 Build site.
Rmd 6f8a606 jens-daniel-mueller 2020-12-07 rerun standard config
html 92dca91 jens-daniel-mueller 2020-12-07 Build site.
html 6a8004b jens-daniel-mueller 2020-12-07 Build site.
Rmd a4ec6a0 jens-daniel-mueller 2020-12-07 Keppler comparison run
html 70bf1a5 jens-daniel-mueller 2020-12-07 Build site.
Rmd fe4f9b0 jens-daniel-mueller 2020-12-07 run standard config
html 7555355 jens-daniel-mueller 2020-12-07 Build site.
Rmd 263f926 jens-daniel-mueller 2020-12-07 run with qc flag alos 0
html 143d6fa jens-daniel-mueller 2020-12-07 Build site.
Rmd 33b1973 jens-daniel-mueller 2020-12-07 run with WOCE flag 2 only
html 3c8a83c jens-daniel-mueller 2020-12-04 Build site.
html abc6818 jens-daniel-mueller 2020-12-03 Build site.
Rmd 992ba15 jens-daniel-mueller 2020-12-03 rebuild with variable inventory depth
html 090e4d5 jens-daniel-mueller 2020-12-02 Build site.
html 37e9dac jens-daniel-mueller 2020-12-02 Build site.
html 7c25f7a jens-daniel-mueller 2020-12-02 Build site.
Rmd 5ffd065 jens-daniel-mueller 2020-12-02 rebuild with nice era labels
html 22b2b8e jens-daniel-mueller 2020-12-02 Build site.
Rmd fb05352 jens-daniel-mueller 2020-12-02 editorial changes
html ec8dc38 jens-daniel-mueller 2020-12-02 Build site.
html c987de1 jens-daniel-mueller 2020-12-02 Build site.
html 632c84f jens-daniel-mueller 2020-12-02 Build site.
Rmd 8f3d29d jens-daniel-mueller 2020-12-02 code cleaning and commenting
html 148f0f4 jens-daniel-mueller 2020-12-01 Build site.
Rmd 728d584 jens-daniel-mueller 2020-12-01 unabled all plots generation
html 22d0127 jens-daniel-mueller 2020-12-01 Build site.
Rmd 3c7ddc8 jens-daniel-mueller 2020-12-01 rebuild with flexible eras, A16 shifted and all plots = y
html 0ff728b jens-daniel-mueller 2020-12-01 Build site.
Rmd 6287a18 jens-daniel-mueller 2020-12-01 auto eras naming
html 7ff39ce jens-daniel-mueller 2020-12-01 Build site.
html 88749c5 jens-daniel-mueller 2020-12-01 Build site.
Rmd 8eb582e jens-daniel-mueller 2020-12-01 auto eras naming
html cf19652 jens-daniel-mueller 2020-11-30 Build site.
html 196be51 jens-daniel-mueller 2020-11-30 Build site.
Rmd 7a4b015 jens-daniel-mueller 2020-11-30 first rebuild on ETH server

1 Definition

The following local parametrisations (i.e. relevant for this sensitivity run) were defined to run the analysis:

# neutral density thresholds to cut the Atlantic ocean into slabs
slabs_Atl <-
  c(
    -Inf,
    26.00,
    26.50,
    26.75,
    27.00,
    27.25,
    27.50,
    27.75,
    27.85,
    27.95,
    28.05,
    28.10,
    28.15,
    28.20,
    Inf
  )

# neutral density thresholds to cut the Indo-Pacific ocean into slabs
slabs_Ind_Pac <-
  c(-Inf,
    26.00,
    26.50,
    26.75,
    27.00,
    27.25,
    27.50,
    27.75,
    27.85,
    27.95,
    28.05,
    28.10,
    28.20,
    28.30,
    28.40,
    Inf)

# Predictors for MLR model
MLR_predictors <- c(
                "sal",
                "temp",
                "aou",
                "oxygen",
                "nitrate",
                "silicate",
                "phosphate")

params_local <-
  lst(
    # ID of current sensitivity run
    Version_ID = "v_XXX",
    # GLODAP version used
    GLODAPv2_version = "2021",
    # f flags accepted for GLODAP data
    flag_f = c(0,2,9),
    # qc flags accepted for GLODAP data
    flag_qc = c(1,0),
    # Shallowest depth for data to be included in MLR fitting
    depth_min = 100,
    # Shallowest water depth for data to be included in MLR fitting
    bottomdepth_min = 0,
    # Lowest neutral density to map dcant with eMLR approach
    gamma_min = 26,
    # CANYON-B offset threshold
    # (factor applied to standard deviation of all cruise offsets)
    CANYON_B_max = 10,
    # break years for eras, numbers indicate the upper end of the respective era
    c_star_rmse_max = 50,
    # start years for eras
    era_start = c(2000, 2010),
    # end years for eras
    era_end = c(2009, 2019),
    # manually define tref1, set to NULL to use median year
    tref1 = 2004,
    # manually define tref2, set to NULL to use median year
    tref2 = 2014,
    # ID for basins for MLR fits (options: "2", "AIP", "5", "SO")
    MLR_basins = "AIP",
    # gap filling of NA values in GLODAP
    gap_filling = "CANYON-B",
    # rarefication approach
    rarefication = "coarse_grid",
    # rarefication approach threshold
    rarefication_threshold = 25,
    # Select the target variable for MLR, either "tco2", "cstar" or "cstar_tref"
    MLR_target = "cstar_tref",
    # see above
    MLR_predictors = MLR_predictors,
    # Maxmimum number of MLR predictors
    MLR_predictors_max = 5,
    # Minimum number of MLR predictors
    MLR_predictors_min = 2,
    # Total number of MLR fits taken into account
    MLR_number = 10,
    # function used to fit linear regression models: "lm", "rlm"
    MLR_function = "rlm",
    # Maximum VIF of fitted MLR models to be included
    vif_max = 500,
    # Criterion to select best MLR fits, either "rmse" or "aic"
    MLR_criterion = "rmse",
    # see above
    slabs_Atl = slabs_Atl,
    # see above
    slabs_Ind_Pac = slabs_Ind_Pac,
    # nutrient for cstar calculation
    cstar_nutrient = "phosphate",
    # Stoichiometric ratio of C to P
    rCP = 117,
    # Stoichiometric ratio of N to P
    rNP = 16,
    # Stoichiometric ratio of P to O (PO4* calculation)
    rPO = 170,
    # Offset P to O (PO4* calculation)
    rPO_offset = 1.95,
    # Preindustrial atmospheric pCO2
    preind_atm_pCO2 = 280,
    # generate a high number of diagnostic plots while running the analysis (y/n)
    plot_all_figures = "n"
  )
# neutral density thresholds to cut the Atlantic ocean into slabs
slabs_Atl <-
  c(
    -Inf,
    26.00,
    26.50,
    26.75,
    27.00,
    27.25,
    27.50,
    27.75,
    27.85,
    27.95,
    28.05,
    28.10,
    28.15,
    28.20,
    Inf
  )

# neutral density thresholds to cut the Indo-Pacific ocean into slabs
slabs_Ind_Pac <-
  c(-Inf,
    26.00,
    26.50,
    26.75,
    27.00,
    27.25,
    27.50,
    27.75,
    27.85,
    27.95,
    28.05,
    28.10,
    28.20,
    28.30,
    28.40,
    Inf)

# Predictors for MLR model
MLR_predictors <- c(
                "sal",
                "temp",
                "aou",
                "nitrate",
                "silicate",
                "phosphate",
                "phosphate_star")

params_local <-
  lst(
    # ID of current sensitivity run
    Version_ID = "v_214",
    # GLODAP version used
    GLODAPv2_version = "2021",
    # f flags accepted for GLODAP data
    flag_f = c(0,2,9),
    # qc flags accepted for GLODAP data
    flag_qc = c(1,0),
    # Shallowest depth for data to be included in MLR fitting
    depth_min = 150,
    # Shallowest water depth for data to be included in MLR fitting
    bottomdepth_min = 0,
    # Lowest neutral density to map dcant with eMLR approach
    gamma_min = 26,
    # CANYON-B offset threshold
    # (factor applied to standard deviation of all cruise offsets)
    CANYON_B_max = 10,
    # break years for eras, numbers indicate the upper end of the respective era
    c_star_rmse_max = 50,
    # start years for eras
    era_start = c(1982, 2000),
    # end years for eras
    era_end = c(1999, 2009),
    # manually define tref1, set to NULL to use median year
    tref1 = 1994,
    # manually define tref2, set to NULL to use median year
    tref2 = 2004,
    # ID for basins for MLR fits (options: "2", "AIP", "5", "SO")
    MLR_basins = "SO",
    # gap filling of NA values in GLODAP
    gap_filling = "none",
    # rarefication approach
    rarefication = "coarse_grid",
    # rarefication approach threshold
    rarefication_threshold = 25,
    # Select the target variable for MLR, either "tco2", "cstar" or "cstar_tref"
    MLR_target = "cstar_tref",
    # see above
    MLR_predictors = MLR_predictors,
    # Maxmimum number of MLR predictors
    MLR_predictors_max = 5,
    # Minimum number of MLR predictors
    MLR_predictors_min = 2,
    # Total number of MLR fits taken into account
    MLR_number = 10,
    # Maximum VIF of fitted MLR models to be included
    vif_max = 500,
    # Criterion to select best MLR fits, either "rmse" or "aic"
    MLR_criterion = "rmse",
    # see above
    slabs_Atl = slabs_Atl,
    # see above
    slabs_Ind_Pac = slabs_Ind_Pac,
    # nutrient for cstar calculation
    cstar_nutrient = "phosphate",
    # Stoichiometric ratio of C to P
    rCP = 117,
    # Stoichiometric ratio of N to P
    rNP = 16,
    # Stoichiometric ratio of P to O (PO4* calculation)
    rPO = 170,
    # Offset P to O (PO4* calculation)
    rPO_offset = 1.95,
    # Preindustrial atmospheric pCO2
    preind_atm_pCO2 = 280,
    # generate a high number of diagnostic plots while running the analysis (y/n)
    plot_all_figures = "n"
  )
library(tidyverse)

expand_grid(version = c("GLO", "DAP"),
       year = c(2021, 2022),
       era = seq(23,25,1),
       pred = c(MLR_predictors, MLR_predictors))

params_local %>% 
  cross()

hoist()

2 Create folders

Folders for each new sensitivity run are automatically created.

3 Write file

Parametrisation criteria are locally stored and used throughout this sensitivity case.

params_local %>%
  write_rds(here::here("data/auxillary",
                       "params_local.rds"))

sessionInfo()
R version 4.0.3 (2020-10-10)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: openSUSE Leap 15.2

Matrix products: default
BLAS:   /usr/local/R-4.0.3/lib64/R/lib/libRblas.so
LAPACK: /usr/local/R-4.0.3/lib64/R/lib/libRlapack.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] forcats_0.5.0   stringr_1.4.0   dplyr_1.0.5     purrr_0.3.4    
 [5] readr_1.4.0     tidyr_1.1.2     tibble_3.0.4    ggplot2_3.3.3  
 [9] tidyverse_1.3.0 workflowr_1.6.2

loaded via a namespace (and not attached):
 [1] tidyselect_1.1.0 xfun_0.18        haven_2.3.1      colorspace_1.4-1
 [5] vctrs_0.3.5      generics_0.0.2   htmltools_0.5.0  yaml_2.2.1      
 [9] blob_1.2.1       rlang_0.4.10     later_1.1.0.1    pillar_1.4.7    
[13] withr_2.3.0      glue_1.4.2       DBI_1.1.0        dbplyr_1.4.4    
[17] readxl_1.3.1     modelr_0.1.8     lifecycle_1.0.0  cellranger_1.1.0
[21] munsell_0.5.0    gtable_0.3.0     rvest_0.3.6      evaluate_0.14   
[25] knitr_1.30       httpuv_1.5.4     fansi_0.4.1      broom_0.7.5     
[29] Rcpp_1.0.5       promises_1.1.1   backports_1.1.10 scales_1.1.1    
[33] jsonlite_1.7.1   fs_1.5.0         hms_0.5.3        digest_0.6.27   
[37] stringi_1.5.3    rprojroot_2.0.2  grid_4.0.3       here_0.1        
[41] cli_2.1.0        tools_4.0.3      magrittr_1.5     crayon_1.3.4    
[45] whisker_0.4      pkgconfig_2.0.3  ellipsis_0.3.1   xml2_1.3.2      
[49] reprex_0.3.0     lubridate_1.7.9  assertthat_0.2.1 rmarkdown_2.5   
[53] httr_1.4.2       rstudioapi_0.11  R6_2.5.0         git2r_0.27.1    
[57] compiler_4.0.3