Last updated: 2020-11-26

Checks: 7 0

Knit directory: Cant_eMLR/

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 5b4d20c. 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:    .Rproj.user/
    Ignored:    analysis/figure/
    Ignored:    data/
    Ignored:    dump/

Untracked files:
    Untracked:  code/biogeochemical_functions.R
    Untracked:  code/test_scripts/analysis_previous_studies.Rmd
    Untracked:  code/test_scripts/read_World_Ocean_Atlas_2013_Clement.Rmd

Unstaged changes:
    Modified:   analysis/config_parameterization.Rmd
    Modified:   analysis/eMLR_model_fitting.Rmd
    Modified:   code/mapping_functions.R
    Modified:   code/plotting_functions.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/analysis_this_study.Rmd) and HTML (docs/analysis_this_study.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 5b4d20c jens-daniel-mueller 2020-11-26 rebuild with integrated plotting functions
html 2c0ac04 jens-daniel-mueller 2020-11-25 Build site.
Rmd fc70e17 jens-daniel-mueller 2020-11-25 revised aspect ratios
html 271a547 jens-daniel-mueller 2020-11-25 Build site.
Rmd 1de0d70 jens-daniel-mueller 2020-11-25 rebuild with functions
html b9cbd4f jens-daniel-mueller 2020-11-20 Build site.
html e563eef jens-daniel-mueller 2020-11-20 Build site.
Rmd 6b50088 jens-daniel-mueller 2020-11-20 rebuild all with seperate set-up and harmonized variable names
html dc6a3f7 jens-daniel-mueller 2020-11-20 Build site.
Rmd b7ddfe2 jens-daniel-mueller 2020-11-20 use setup child Rmd file
Rmd be40bb7 jens-daniel-mueller 2020-11-20 use setup child Rmd file
html db463a3 jens-daniel-mueller 2020-11-18 Build site.
Rmd 0caee5a jens-daniel-mueller 2020-11-18 rebuild with new input
html 12bfd07 jens-daniel-mueller 2020-11-11 Build site.
Rmd 29097d1 jens-daniel-mueller 2020-11-11 modified color scale
html 3da2eee jens-daniel-mueller 2020-11-11 Build site.
Rmd 63e987d jens-daniel-mueller 2020-11-11 adopted new plotting routines
html 63e987d jens-daniel-mueller 2020-11-11 adopted new plotting routines
html fc70a34 jens-daniel-mueller 2020-11-10 Build site.
Rmd 8e21e4d jens-daniel-mueller 2020-11-09 harmonized variable names
html b170b79 jens-daniel-mueller 2020-11-03 Build site.
html 411a35b jens-daniel-mueller 2020-10-02 Build site.
html 0d38979 jens-daniel-mueller 2020-10-01 Build site.
html 9f28fef jens-daniel-mueller 2020-10-01 Build site.
Rmd 812e71b jens-daniel-mueller 2020-10-01 seperate globe rmd
html 35649f2 jens-daniel-mueller 2020-09-30 Build site.
Rmd 5418fb9 jens-daniel-mueller 2020-09-30 added globes for both eras
html 80e9b77 jens-daniel-mueller 2020-09-30 Build site.
Rmd 1794dc7 jens-daniel-mueller 2020-09-30 added 3d globe vis
html 4578cfa jens-daniel-mueller 2020-09-19 Build site.
html b1d66e7 jens-daniel-mueller 2020-09-19 Build site.
Rmd eb34789 jens-daniel-mueller 2020-09-19 gamma slab on depth levels plotted
html d285219 jens-daniel-mueller 2020-09-18 Build site.
Rmd 60efbf7 jens-daniel-mueller 2020-09-18 revised panel order
html d59f716 jens-daniel-mueller 2020-09-18 Build site.
Rmd 27809b8 jens-daniel-mueller 2020-09-18 restricted tco2 f flag to 2
html 9bbf9ee jens-daniel-mueller 2020-09-18 Build site.
Rmd a678e01 jens-daniel-mueller 2020-09-18 resolved cant budget by basin
html 20b9238 jens-daniel-mueller 2020-09-18 Build site.
Rmd 7abc2dd jens-daniel-mueller 2020-09-18 formatted table
html 3ef6906 jens-daniel-mueller 2020-09-18 Build site.
Rmd 5bfaf2a jens-daniel-mueller 2020-09-18 included cant budgets
html 0d94630 jens-daniel-mueller 2020-09-18 Build site.
Rmd bf31773 jens-daniel-mueller 2020-09-18 rearranged plots
html e120224 jens-daniel-mueller 2020-09-18 Build site.
Rmd 39fe9d0 jens-daniel-mueller 2020-09-18 rearranged plots
html 96e3f0a jens-daniel-mueller 2020-09-18 Build site.
Rmd 6ebc455 jens-daniel-mueller 2020-09-18 rearranged and revised plots
html 8ddeeac jens-daniel-mueller 2020-09-18 Build site.
Rmd 3fe7f52 jens-daniel-mueller 2020-09-18 rearranged plots
html 88e474a jens-daniel-mueller 2020-09-18 Build site.
Rmd cf9b9d7 jens-daniel-mueller 2020-09-18 zonal mean section gruber color scale
html 21668f6 jens-daniel-mueller 2020-09-18 Build site.
Rmd 3838220 jens-daniel-mueller 2020-09-18 zonal mean section gruber color scale
html 9b35dd0 jens-daniel-mueller 2020-09-18 Build site.
Rmd 4b8cb4e jens-daniel-mueller 2020-09-18 zonal mean section gruber color scale
html b68196d jens-daniel-mueller 2020-09-18 Build site.
Rmd 7c0354d jens-daniel-mueller 2020-09-18 mean sections with gruber color scale
html 59e9bcd jens-daniel-mueller 2020-09-18 Build site.
Rmd df65c0a jens-daniel-mueller 2020-09-18 applied Gruber 2019 color scale
html f5a20ac jens-daniel-mueller 2020-09-17 Build site.
Rmd 10c1a10 jens-daniel-mueller 2020-09-17 added Cant along slab
html cf64460 jens-daniel-mueller 2020-09-17 Build site.
html 9d9a553 jens-daniel-mueller 2020-09-17 Build site.
Rmd a7e8ba5 jens-daniel-mueller 2020-09-17 rebuild after complete collapse averaging
html abc176a jens-daniel-mueller 2020-09-17 Build site.
Rmd ca05234 jens-daniel-mueller 2020-09-17 collapse averaging for all big data sets
html 1ea7231 jens-daniel-mueller 2020-09-17 Build site.
html d43d9e2 jens-daniel-mueller 2020-09-16 Build site.
html 605e13b jens-daniel-mueller 2020-09-16 Build site.
html 1f3319a jens-daniel-mueller 2020-09-16 Build site.
html 19d4d56 jens-daniel-mueller 2020-09-16 Build site.
html 55f86a6 jens-daniel-mueller 2020-09-15 Build site.
Rmd b9d37ab jens-daniel-mueller 2020-09-15 observations per density slab included
html 2cd847c jens-daniel-mueller 2020-09-14 Build site.
Rmd 1a13af4 jens-daniel-mueller 2020-09-14 replace all model sections plots chunk
html da91d98 jens-daniel-mueller 2020-09-10 Build site.
html 454e665 jens-daniel-mueller 2020-09-10 Build site.
Rmd c7ae6ab jens-daniel-mueller 2020-09-10 updated plots
html 1124ca5 jens-daniel-mueller 2020-09-10 Build site.
Rmd 27c5ab1 jens-daniel-mueller 2020-09-10 updated plots
html 382ffba jens-daniel-mueller 2020-09-10 Build site.
Rmd d37bb48 jens-daniel-mueller 2020-09-10 updated plots
html a34a239 jens-daniel-mueller 2020-09-10 Build site.
html 2458576 jens-daniel-mueller 2020-09-09 Build site.
html e60e13c jens-daniel-mueller 2020-09-09 Build site.
Rmd 7040b80 jens-daniel-mueller 2020-09-09 remove basin_AIP not covered by mapping
html c3ffdfd jens-daniel-mueller 2020-09-08 Build site.
Rmd 04ee730 jens-daniel-mueller 2020-09-08 rebuild after revision
html 793f996 jens-daniel-mueller 2020-09-07 Build site.
Rmd 2d1300a jens-daniel-mueller 2020-09-07 added all predictor plots
html 148db18 jens-daniel-mueller 2020-09-07 Build site.
Rmd 0bea059 jens-daniel-mueller 2020-09-07 plotted predictor contribution zonal mean
html a50f053 jens-daniel-mueller 2020-09-07 Build site.
html da445a6 jens-daniel-mueller 2020-09-04 Build site.
Rmd 6a302ca jens-daniel-mueller 2020-09-04 rebuild after new data cleaning and mapping Cant to surface
html fa11a74 jens-daniel-mueller 2020-09-02 Build site.
html 429aab3 jens-daniel-mueller 2020-09-01 Build site.
html f4216dd jens-daniel-mueller 2020-09-01 Build site.
html 13a76d5 jens-daniel-mueller 2020-08-28 Build site.
Rmd 2e6a4ca jens-daniel-mueller 2020-08-28 XXX
html 1f05c5d jens-daniel-mueller 2020-08-28 Build site.
Rmd 5ad6a52 jens-daniel-mueller 2020-08-28 added gamma maps and switched to depth levels 150, 500, 1000, 2000
html 27404de jens-daniel-mueller 2020-08-27 Build site.
html cfdb312 jens-daniel-mueller 2020-08-27 Build site.
Rmd a4d0f62 jens-daniel-mueller 2020-08-27 plotting with functions
html b6d0e6a jens-daniel-mueller 2020-08-27 Build site.
html fc4f889 jens-daniel-mueller 2020-08-26 Build site.
Rmd a3e427c jens-daniel-mueller 2020-08-26 Cant vs regional SD added
html f37f6b6 jens-daniel-mueller 2020-08-26 Build site.
Rmd ce109c0 jens-daniel-mueller 2020-08-26 Cant vs SD plotted
html e951135 jens-daniel-mueller 2020-08-26 Build site.
Rmd 7f3a671 jens-daniel-mueller 2020-08-26 Cant vs SD plotted
html f40e48b jens-daniel-mueller 2020-08-26 Build site.
Rmd b577ec6 jens-daniel-mueller 2020-08-26 Analysis split in this and previous studies

1 Libraries

Loading libraries specific to the the analysis performed in this section.

library(scales)
library(marelac)
library(kableExtra)

2 Data sources

cant estimates from this study:

  • Mean and SD per grid cell (lat, lon, depth)
  • Zonal mean and SD (basin, lat, depth)
  • Inventories (lat, lon)
cant_3d <-
  read_csv(here::here("data/output",
                         "cant_3d.csv"))

cant_zonal <-
  read_csv(here::here("data/output",
                         "cant_zonal.csv"))

cant_predictor_zonal <-
  read_csv(here::here("data/output",
                         "cant_predictor_zonal.csv"))

cant_inv <-
  read_csv(here::here("data/output",
                         "cant_inv.csv"))

C* estimates from this study:

  • Mean and SD per grid cell (lat, lon, depth)
  • Zonal mean and SD (basin, lat, depth)
cstar_3d <-
  read_csv(here::here("data/output",
                         "cstar_3d.csv"))

cstar_zonal <-
  read_csv(here::here("data/output",
                         "cstar_zonal.csv"))

Cleaned GLODAPv2_2020 file as used in this study

GLODAP <-
  read_csv(
    here::here(
      "data/interim",
      "GLODAPv2.2020_MLR_fitting_ready.csv"
    )
  )

3 Cant budgets

Global Cant inventories were estimated in units of Pg C. Please note that here we only added positive Cant values in the upper 3000m and do not apply additional corrections for areas not covered.

cant_inv_budget <- cant_inv %>% 
  mutate(surface_area = earth_surf(lat, lon),
         cant_inv_grid = cant_inv*surface_area) %>% 
  group_by(eras, basin_AIP) %>% 
  summarise(cant_total = sum(cant_inv_grid)*12*1e-15,
            cant_total = round(cant_total,1)) %>% 
  ungroup() %>% 
  arrange(desc(eras)) %>% 
  pivot_wider(values_from = cant_total, names_from = basin_AIP) %>% 
  mutate(total = Atlantic + Indian + Pacific)

cant_inv_budget %>% 
  kableExtra::kable() %>% 
  add_header_above() %>%
  kable_styling(full_width = FALSE)
eras Atlantic Indian Pacific total
JGOFS_GO 11.2 10.7 18.6 40.5
GO_new 7.3 3.8 14.7 25.8
rm(cant_inv_budget)

4 Cant - positive

In a first series of plots we explore the distribution of cant, taking only positive estimates into account (positive here refers to the mean cant estimate across 10 eMLR model predictions available for each grid cell). Negative values were set to zero before calculating mean sections and inventories.

4.1 Zonal mean sections

# i_basin_AIP <- unique(cant_zonal$basin_AIP)[2]
# i_eras <- unique(cant_zonal$eras)[1]

for (i_basin_AIP in unique(cant_zonal$basin_AIP)) {
  for (i_eras in unique(cant_zonal$eras)) {
   
     print(
      p_section_zonal(
        df = cant_zonal %>%
          filter(basin_AIP == i_basin_AIP,
                 eras == i_eras),
        var = "cant_pos_mean",
        subtitle_text =
          paste("Basin:", i_basin_AIP, "| eras:", i_eras))
    )
    
  }
}

4.2 Isoneutral slab distribution

Mean of positive cant within each horizontal grid cell (lon x lat) per isoneutral slab.

Please note that:

  • density slabs covering values >28.1 occur by definition only either in the Atlantic or Indo-Pacific basin
  • gaps in the maps represent areas where (thin) density layers fit between discrete depth levels used for mapping
cant_gamma_maps <- m_cant_slab(cant_3d)

cant_gamma_maps <- cant_gamma_maps %>% 
  arrange(gamma_slab, eras)
# i_eras <- unique(cant_gamma_maps$eras)[1]
# i_gamma_slab <- unique(cant_gamma_maps$gamma_slab)[1]

for (i_eras in unique(cant_gamma_maps$eras)) {
  for (i_gamma_slab in unique(cant_gamma_maps$gamma_slab)) {
    print(
      p_map_cant_slab(
        df = cant_gamma_maps %>%
          filter(eras == i_eras,
                 gamma_slab == i_gamma_slab),
        subtitle_text = paste(
          "Eras:", i_eras,
          "| Neutral density:", i_gamma_slab)
        )
    )
    
  }
}

4.3 Inventory map

Column inventory of positive cant between the surface and 3000m water depth per horizontal grid cell (lat x lon).

# i_eras <- unique(cant_inv$eras)[1]

for (i_eras in unique(cant_inv$eras)) {
  
  print(
    p_map_cant_inv(
      df = cant_inv %>% filter(eras == i_eras),
      var = "cant_pos_inv",
      subtitle_text = paste("Eras:", i_eras))
  )
  
}

4.4 Global sections

for (i_eras in unique(cant_3d$eras)) {
  print(
    p_section_global(
      df = cant_3d %>% filter(eras == i_eras),
      var = "cant_pos",
      subtitle_text = paste("Eras:", i_eras)
    )
  )
  
}

5 Cant - all

In a second series of plots we explore the distribution of cant, taking positive and negative estimates into account.

5.1 Zonal mean sections

# i_eras <- unique(cant_zonal$eras)[1]
# i_basin_AIP <- unique(cant_zonal$basin_AIP)[1]

for (i_basin_AIP in unique(cant_zonal$basin_AIP)) {
  for (i_eras in unique(cant_zonal$eras)) {
    print(
      p_section_zonal(
        df = cant_zonal %>%
          filter(basin_AIP == i_basin_AIP,
                 eras == i_eras),
        var = "cant_mean",
        gamma = "gamma_mean",
        breaks = parameters$breaks_cant,
        col = "divergent",
        subtitle_text =
          paste("Basin:", i_basin_AIP, "| eras:", i_eras))
    )
    
  }
}

5.2 Isoneutral slab distribution

Mean of cant within each horizontal grid cell (lon x lat) per isoneutral slab.

Please note that:

  • density slabs covering values >28.1 occur by definition only either in the Atlantic or Indo-Pacific basin
  • gaps in the maps represent areas where (thin) density layers fit between discrete depth levels used for mapping
# i_eras <- unique(cant_gamma_maps$eras)[1]
# i_gamma_slab <- unique(cant_gamma_maps$gamma_slab)[5]

for (i_eras in unique(cant_gamma_maps$eras)) {
  for (i_gamma_slab in unique(cant_gamma_maps$gamma_slab)) {
    print(
      p_map_cant_slab(
        df = cant_gamma_maps %>%
          filter(eras == i_eras,
                 gamma_slab == i_gamma_slab),
        var = "cant",
        col = "divergent",
        subtitle_text = paste(
          "Eras:", i_eras,
          "| Neutral density:", i_gamma_slab))
    )
    
  }
}

5.3 Inventory map

Column inventory of positive cant between the surface and 3000m water depth per horizontal grid cell (lat x lon).

# i_eras <- unique(cant_inv$eras)[1]

for (i_eras in unique(cant_inv$eras)) {
  
  print(
    p_map_cant_inv(
      df = cant_inv %>% filter(eras == i_eras),
      var = "cant_inv",
      col = "divergent",
      subtitle_text = paste("Eras:", i_eras))
  )
  
}

6 Cant - standard deviation

6.1 Across models

Standard deviation across Cant from all MLR models was calculate for each grid cell (XYZ). The zonal mean of this standard deviation should reflect the uncertainty associated to the predictor selection within each slab and era.

# i_eras <- unique(cant_zonal$eras)[1]
# i_basin_AIP <- unique(cant_zonal$basin_AIP)[2]

for (i_basin_AIP in unique(cant_zonal$basin_AIP)) {
  for (i_eras in unique(cant_zonal$eras)) {
    print(
      p_section_zonal(
        df = cant_zonal %>%
          filter(basin_AIP == i_basin_AIP,
                 eras == i_eras),
        var = "cant_sd_mean",
        gamma = "gamma_mean",
        legend_title = "sd",
        title_text = "Zonal mean section of Cant sd between models",
        subtitle_text =
          paste("Basin:", i_basin_AIP, "| eras:", i_eras))
    )
    
  }
}

6.2 Across basins

Standard deviation of mean cant values was calculate across all longitudes. This standard deviation should reflect the zonal variability of cant within the basin and era.

# i_eras <- unique(cant_zonal$eras)[1]
# i_basin_AIP <- unique(cant_zonal$basin_AIP)[2]

for (i_basin_AIP in unique(cant_zonal$basin_AIP)) {
  for (i_eras in unique(cant_zonal$eras)) {
    print(
      p_section_zonal(
        df = cant_zonal %>%
          filter(basin_AIP == i_basin_AIP,
                 eras == i_eras),
        var = "cant_sd",
        gamma = "gamma_mean",
        legend_title = "sd",
        title_text = "Zonal mean section of sd between model mean Cant",
        subtitle_text =
          paste("Basin:", i_basin_AIP, "| eras:", i_eras))
    )
    
  }
}

6.3 Correlation

6.3.1 Cant vs model SD

cant_3d <- cant_3d  %>% 
  mutate(eras = factor(eras, c("JGOFS_GO", "GO_new")))

cant_3d %>% 
  ggplot(aes(cant, cant_sd)) +
  geom_vline(xintercept = 0) +
  geom_hline(yintercept = 10) +
  geom_bin2d() +
  scale_fill_viridis_c(option = "magma",
                       direction = -1,
                       trans = "log10",
                       name = "log10(n)") +
  facet_grid(basin_AIP ~ eras)

cant_3d %>% 
  ggplot(aes(cant, cant_sd)) +
  geom_vline(xintercept = 0) +
  geom_hline(yintercept = 10) +
  geom_bin2d() +
  scale_fill_viridis_c(option = "magma",
                       direction = -1,
                       trans = "log10",
                       name = "log10(n)") +
  facet_grid(gamma_slab ~ basin_AIP)

6.3.2 Cant vs regional SD

cant_zonal %>% 
  ggplot(aes(cant_mean, cant_sd)) +
  geom_vline(xintercept = 0) +
  geom_hline(yintercept = 10) +
  geom_bin2d() +
  scale_fill_viridis_c(option = "magma",
                       direction = -1,
                       trans = "log10",
                       name = "log10(n)") +
  facet_grid(basin_AIP ~ eras)

cant_zonal %>% 
  ggplot(aes(cant_mean, cant_sd)) +
  geom_vline(xintercept = 0) +
  geom_hline(yintercept = 10) +
  geom_bin2d() +
  scale_fill_viridis_c(option = "magma",
                       direction = -1,
                       trans = "log10",
                       name = "log10(n)") +
  facet_grid(gamma_slab ~ basin_AIP)

7 Cant - predictor contribution

cant_predictor_zonal <- cant_predictor_zonal %>% 
  mutate(eras = factor(eras, c("JGOFS_GO", "GO_new")))

variable <- "cant_intercept"

for (variable in c(
  "cant_intercept",
  "cant_aou",
  "cant_oxygen",
  "cant_phosphate",
  "cant_phosphate_star",
  "cant_silicate",
  "cant_tem",
  "cant_sal")) {

print(
p_section_zonal_divergent_gamma_eras_basin(
  df = cant_predictor_zonal,
  var = variable,
  gamma = "gamma")
)
    
}

rm(variable)

8 Neutral density

8.1 Slab depth

Please note that:

  • density slabs covering values >28.1 occur by definition only either in the Atlantic or Indo-Pacific basin
  • predictor density slabs are only shown for the upper 3000m as used for the mapping, whereas GLODAP observations are displayed for the entire water column as used for fitting eMLRs (in both cases shallow waters are excluded at low density)
GLODAP_obs_coverage <- GLODAP %>% 
  count(lat, lon, gamma_slab, era) %>% 
  mutate(era = factor(era, c("JGOFS_WOCE", "GO_SHIP", "new_era")))
  
map +
  geom_raster(data = cant_gamma_maps,
              aes(lon, lat, fill = depth_max)) +
  geom_raster(data = GLODAP_obs_coverage,
              aes(lon, lat), fill = "red") +
  facet_grid(gamma_slab ~ era) +
  scale_fill_viridis_c(direction = -1) +
  theme(axis.ticks = element_blank(),
        axis.text = element_blank(),
        legend.position = "top")

rm(GLODAP_obs_coverage)

9 C*

9.1 Zonal mean sections

cstar_zonal <- cstar_zonal %>% 
    mutate(era = factor(era, c("JGOFS_WOCE", "GO_SHIP", "new_era"))) 

slab_breaks <- c(parameters$slabs_Atl[1:12],Inf)

cstar_zonal %>% 
    ggplot(aes(lat, depth, z = cstar_mean)) +
    geom_contour_filled(bins = 11) +
    scale_fill_viridis_d(name = "cstar") +
    geom_contour(aes(lat, depth, z = gamma_mean),
                 breaks = slab_breaks,
                 col = "white") +
    geom_text_contour(
      aes(lat, depth, z = gamma_mean),
      breaks = slab_breaks,
      col = "white",
      skip = 1
    ) +
    scale_y_reverse() +
    scale_x_continuous(breaks = seq(-100,100,20)) +
    coord_cartesian(expand = 0) +
    guides(fill = guide_colorsteps(barheight = unit(10, "cm"))) +
    facet_grid(basin_AIP ~ era)

rm(slab_breaks)

10 Sections by model

Zonal sections plots are produced for every 20° longitude, each era and for all models individually and can be downloaded here.

11 Known issues

Deviations between this study and the results by Gruber et al (2019), short G19, for the same period, might be attributable to following known differences in the implementation of the eMLR(C*) method:

  • GLODAPv2_2020 here vs an extended version of GLODAPv2 in G19
  • flagging: Here, we accept f flags 0 and 2 (except for tco2, where only 0 is accepted). G19 claim to use 0 throughout, yet have a high coverage of talk observations in the SE Pacific
  • Neutral density calculation: Here and in GLODAPv2_2020 a polynomial approximation is used, whereas G19 uses the original Matlab code
  • Predictor climatology: Here we used WOA18, whereas G19 used WOA13
  • Missing data in the GLODAP mapped climatology, eg NO3 at surface, where not filled in this study
  • cant on neutral density levels calculate as slab mean, rather than on one surface
  • Here, surface delta cant were calculated based on Luecker constants, rather than Mehrbach as in G19
  • Here, pCO2 was calculated from DIC/TA Climatology

sessionInfo()
R version 4.0.2 (2020-06-22)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18363)

Matrix products: default

locale:
[1] LC_COLLATE=English_Germany.1252  LC_CTYPE=English_Germany.1252   
[3] LC_MONETARY=English_Germany.1252 LC_NUMERIC=C                    
[5] LC_TIME=English_Germany.1252    

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

other attached packages:
 [1] kableExtra_1.1.0 marelac_2.1.10   shape_1.4.4      scales_1.1.1    
 [5] metR_0.7.0       scico_1.2.0      patchwork_1.0.1  collapse_1.3.2  
 [9] forcats_0.5.0    stringr_1.4.0    dplyr_1.0.0      purrr_0.3.4     
[13] readr_1.3.1      tidyr_1.1.0      tibble_3.0.3     ggplot2_3.3.2   
[17] tidyverse_1.3.0  workflowr_1.6.2 

loaded via a namespace (and not attached):
 [1] fs_1.4.2          lubridate_1.7.9   gsw_1.0-5         webshot_0.5.2    
 [5] httr_1.4.2        rprojroot_1.3-2   tools_4.0.2       backports_1.1.8  
 [9] R6_2.4.1          DBI_1.1.0         colorspace_1.4-1  withr_2.2.0      
[13] tidyselect_1.1.0  compiler_4.0.2    git2r_0.27.1      cli_2.0.2        
[17] rvest_0.3.6       xml2_1.3.2        isoband_0.2.2     sandwich_2.5-1   
[21] labeling_0.3      checkmate_2.0.0   digest_0.6.25     rmarkdown_2.3    
[25] oce_1.2-0         pkgconfig_2.0.3   htmltools_0.5.0   dbplyr_1.4.4     
[29] highr_0.8         rlang_0.4.7       readxl_1.3.1      rstudioapi_0.11  
[33] farver_2.0.3      generics_0.0.2    zoo_1.8-8         jsonlite_1.7.0   
[37] magrittr_1.5      Formula_1.2-3     Matrix_1.2-18     Rcpp_1.0.5       
[41] munsell_0.5.0     fansi_0.4.1       lifecycle_0.2.0   stringi_1.4.6    
[45] whisker_0.4       yaml_2.2.1        plyr_1.8.6        grid_4.0.2       
[49] blob_1.2.1        parallel_4.0.2    promises_1.1.1    crayon_1.3.4     
[53] lattice_0.20-41   haven_2.3.1       hms_0.5.3         seacarb_3.2.13   
[57] knitr_1.30        pillar_1.4.6      reprex_0.3.0      glue_1.4.1       
[61] evaluate_0.14     data.table_1.13.0 modelr_0.1.8      vctrs_0.3.2      
[65] httpuv_1.5.4      testthat_2.3.2    cellranger_1.1.0  gtable_0.3.0     
[69] assertthat_0.2.1  xfun_0.16         xtable_1.8-4      broom_0.7.0      
[73] lfe_2.8-5.1       later_1.1.0.1     viridisLite_0.3.0 memoise_1.1.0    
[77] ellipsis_0.3.1    here_0.1