Last updated: 2021-04-08

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 05a66fd. 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/

Untracked files:
    Untracked:  code/previous_script_versions/analysis_this_study.Rmd
    Untracked:  code/previous_script_versions/analysis_this_study_vs_Gruber_2019.Rmd
    Untracked:  code/previous_script_versions/mapping_target_variable.Rmd
    Untracked:  data/

Unstaged changes:
    Modified:   analysis/_site.yml
    Deleted:    analysis/analysis_this_study.Rmd
    Deleted:    analysis/analysis_this_study_vs_Gruber_2019.Rmd
    Deleted:    analysis/mapping_target_variable.Rmd
    Modified:   code/Workflowr_project_managment.R

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
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,
    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_XXX",
    # f flags accepted for GLODAP data
    flag_f = c(2,0),
    # 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 Cant with eMLR approach
    gamma_min = 26,
    # CANYON-B offset threshold
    # (factor applied to standard deviation of all cruise offsets)
    CANYON_B_max = 3,
    # break years for eras, numbers indicate the upper end of the respective era
    c_star_rmse_max = 20,
    # start years for eras
    era_start = c(1981, 2000),
    # end years for eras
    era_end = c(1999, 2012),
    # Should A16 cruise from 2013/14 be included in middle era (y/n)
    A16_GO_SHIP = "y",
    # ID for basins for MLR fits
    MLR_basins = "2",
    # 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 = 50,
    # 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,
    # 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"
  )

2 Write file

Parameterization criteria are locally stored and used throughout this sensitivty case.

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

3 Create folders

Folders for each new sensitivity run are automatically created.


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.13  R6_2.5.0         git2r_0.27.1    
[57] compiler_4.0.3