Last updated: 2020-08-19
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 94f9375. 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: data/GLODAPv1_1/
Ignored: data/GLODAPv2_2016b_MappedClimatologies/
Ignored: data/GLODAPv2_2020/
Ignored: data/Gruber_2019/
Ignored: data/WOCE/
Ignored: data/World_Ocean_Atlas_2018/
Ignored: data/dclement/
Ignored: data/eMLR/
Ignored: data/mapping/
Ignored: data/pCO2_atmosphere/
Ignored: dump/
Ignored: figure/
Unstaged changes:
Modified: analysis/_site.yml
Deleted: analysis/eMLR.Rmd
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/read_GLODAPv2_2016_MappedClimatologies.Rmd
) and HTML (docs/read_GLODAPv2_2016_MappedClimatologies.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 | 29a537a | jens-daniel-mueller | 2020-08-18 | Build site. |
Rmd | 7fb61d5 | jens-daniel-mueller | 2020-08-18 | rerun with all parameters in one file |
html | a3b6b68 | jens-daniel-mueller | 2020-08-13 | Build site. |
html | 00c2120 | jens-daniel-mueller | 2020-08-13 | Build site. |
html | b43777a | jens-daniel-mueller | 2020-08-13 | Build site. |
html | 0db5801 | jens-daniel-mueller | 2020-08-13 | Build site. |
Rmd | df165f1 | jens-daniel-mueller | 2020-08-13 | sourced params, masks, functions |
html | bf69270 | jens-daniel-mueller | 2020-08-13 | Build site. |
html | 1176c9a | jens-daniel-mueller | 2020-08-12 | Build site. |
html | 8b32ee1 | jens-daniel-mueller | 2020-08-12 | Build site. |
Rmd | 092a504 | jens-daniel-mueller | 2020-08-12 | harmonized coordinates, labels, plots and basin mask |
html | 426ac40 | jens-daniel-mueller | 2020-08-12 | Build site. |
Rmd | c76d1ab | jens-daniel-mueller | 2020-08-12 | Show Ind ocean lon |
html | 1bb24c5 | jens-daniel-mueller | 2020-08-12 | Build site. |
Rmd | 109ef2a | jens-daniel-mueller | 2020-08-12 | quiet nc opening, print each parameter name |
html | f76390c | jens-daniel-mueller | 2020-08-12 | Build site. |
Rmd | 33a3d29 | jens-daniel-mueller | 2020-08-12 | Applied basin mask, updated plots and harmoized variable names |
html | f143b2d | jens-daniel-mueller | 2020-08-12 | Build site. |
html | 2d179e7 | jens-daniel-mueller | 2020-08-12 | Build site. |
html | 5d33341 | jens-daniel-mueller | 2020-08-11 | Build site. |
html | 8a010ca | jens-daniel-mueller | 2020-08-11 | Build site. |
html | a01041a | jens-daniel-mueller | 2020-08-11 | Build site. |
html | e18e59a | jens-daniel-mueller | 2020-08-10 | Build site. |
html | 7d7900a | jens-daniel-mueller | 2020-08-07 | Build site. |
html | 5382e24 | jens-daniel-mueller | 2020-07-31 | Build site. |
Rmd | 7ed9e6d | jens-daniel-mueller | 2020-07-31 | text formating |
html | f232972 | jens-daniel-mueller | 2020-07-31 | Build site. |
Rmd | 2cd68a7 | jens-daniel-mueller | 2020-07-31 | separate criteria chunk and explanations added |
html | 9dc5d7f | jens-daniel-mueller | 2020-07-29 | Build site. |
html | 21524b4 | jens-daniel-mueller | 2020-07-29 | Build site. |
html | 30db5de | jens-daniel-mueller | 2020-07-29 | Build site. |
Rmd | 973c193 | jens-daniel-mueller | 2020-07-29 | formating |
html | 2e2412d | jens-daniel-mueller | 2020-07-29 | Build site. |
Rmd | a9fbf3a | jens-daniel-mueller | 2020-07-29 | formating |
html | 2e08795 | jens-daniel-mueller | 2020-07-24 | Build site. |
html | 556e6cc | jens-daniel-mueller | 2020-07-23 | Build site. |
html | c1289a2 | jens-daniel-mueller | 2020-07-23 | Build site. |
html | 2890e73 | jens-daniel-mueller | 2020-07-23 | Build site. |
html | fdfa7b9 | jens-daniel-mueller | 2020-07-22 | Build site. |
html | 23038c8 | jens-daniel-mueller | 2020-07-22 | Build site. |
Rmd | 09b3ca8 | jens-daniel-mueller | 2020-07-22 | eding plain text, restructuring some code |
html | bb9c002 | jens-daniel-mueller | 2020-07-21 | Build site. |
Rmd | d2ed0f8 | jens-daniel-mueller | 2020-07-21 | harmonied lat lon labeling |
html | a268ace | jens-daniel-mueller | 2020-07-21 | Build site. |
Rmd | 48de3ae | jens-daniel-mueller | 2020-07-21 | added pacific section |
html | ca73a98 | jens-daniel-mueller | 2020-07-21 | Build site. |
Rmd | e6c4220 | jens-daniel-mueller | 2020-07-21 | added section plots atlantic ocean |
html | a842785 | jens-daniel-mueller | 2020-07-21 | Build site. |
Rmd | 16cb19e | jens-daniel-mueller | 2020-07-21 | added section plots atlantic ocean |
html | 55d905d | jens-daniel-mueller | 2020-07-21 | Build site. |
Rmd | 87cc2f4 | jens-daniel-mueller | 2020-07-21 | added section plots atlantic ocean |
html | b557574 | jens-daniel-mueller | 2020-07-21 | Build site. |
Rmd | f881ecf | jens-daniel-mueller | 2020-07-21 | added section plots atlantic ocean |
html | ce60bed | jens-daniel-mueller | 2020-07-21 | Build site. |
Rmd | f9548b0 | jens-daniel-mueller | 2020-07-21 | added section plots atlantik |
html | 21eb4f3 | jens-daniel-mueller | 2020-07-21 | Build site. |
Rmd | e3d90cd | jens-daniel-mueller | 2020-07-21 | added section plots atlantik |
html | 97dbf5b | jens-daniel-mueller | 2020-07-21 | Build site. |
Rmd | 5def7e8 | jens-daniel-mueller | 2020-07-21 | create csvs for each parameter |
html | 22b588c | jens-daniel-mueller | 2020-07-18 | Build site. |
Rmd | 87a4680 | jens-daniel-mueller | 2020-07-18 | added WOA blank script |
html | b82f4ea | jens-daniel-mueller | 2020-07-17 | Build site. |
Rmd | 93fd22b | jens-daniel-mueller | 2020-07-17 | cleaned maps |
html | 0f483e4 | jens-daniel-mueller | 2020-07-17 | Build site. |
Rmd | 81f9f3f | jens-daniel-mueller | 2020-07-17 | Plots for all Glodap mapped variables |
html | 30e2e22 | jens-daniel-mueller | 2020-07-14 | Build site. |
Rmd | a48c8f0 | jens-daniel-mueller | 2020-07-14 | Read plot netcdf woth tidync |
html | fc4cf4c | jens-daniel-mueller | 2020-07-14 | Build site. |
Rmd | c18812a | jens-daniel-mueller | 2020-07-14 | Read plot netcdf woth tidync |
html | 2979fdf | jens-daniel-mueller | 2020-07-14 | Build site. |
Rmd | 6823c5d | jens-daniel-mueller | 2020-07-14 | Read plot netcdf woth tidync |
html | 56c3ed9 | jens-daniel-mueller | 2020-07-14 | Build site. |
Rmd | aed89af | jens-daniel-mueller | 2020-07-14 | added Rmd for MappedClimatologies |
library(tidyverse)
library(lubridate)
library(stars)
library(metR)
library(patchwork)
Data source: Globally mapped climatologies from Lauvset et al. (2016) downloaded in June 2020 from glodap.info.
Following files were used:
file_list <- list.files(path = "data/GLODAPv2_2016b_Mappedclimatologies", pattern = "*.nc")
print(file_list)
[1] "GLODAPv2.2016b.Cant.nc" "GLODAPv2.2016b.NO3.nc"
[3] "GLODAPv2.2016b.oxygen.nc" "GLODAPv2.2016b.PO4.nc"
[5] "GLODAPv2.2016b.salinity.nc" "GLODAPv2.2016b.silicate.nc"
[7] "GLODAPv2.2016b.TAlk.nc" "GLODAPv2.2016b.TCO2.nc"
[9] "GLODAPv2.2016b.temperature.nc"
Below, following subsets of the climatologies are plotted for all relevant parameters:
Section locations are indicated as white lines in maps.
# file <- file_list[1]
for (file in file_list) {
clim <- read_stars(here::here("data/GLODAPv2_2016b_Mappedclimatologies",
file),
quiet = TRUE)
# extract parameter name
parameter <- str_split(file, pattern = "6b.", simplify = TRUE)[2]
parameter <- str_split(parameter, pattern = ".nc", simplify = TRUE)[1]
print(parameter)
# extract parameter
clim <- clim %>% select(all_of(parameter))
#convert to table
clim_tibble <- clim %>%
as_tibble()
# harmonize column names
clim_tibble <- clim_tibble %>%
rename(lat = y,
lon = x,
depth = depth_surface)
# remove NAs
clim_tibble <- clim_tibble %>%
drop_na()
# join with basin mask and remove data outside basin mask
clim_tibble <- inner_join(clim_tibble, basinmask)
# write csv file
clim_tibble %>%
write_csv(here::here("data/GLODAPv2_2016b_MappedClimatologies/_summarized_files",
paste(parameter,".csv", sep = "")))
# plot maps
print(
map_climatology(clim_tibble, parameter)
)
# plot sections
print(
section_climatology(clim_tibble, parameter)
)
print(
section_climatology_shallow(clim_tibble, parameter)
)
}
[1] "Cant"
[1] "NO3"
[1] "oxygen"
[1] "PO4"
[1] "salinity"
[1] "silicate"
[1] "TAlk"
[1] "TCO2"
[1] "temperature"
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] patchwork_1.0.1 metR_0.7.0 stars_0.4-3 sf_0.9-5
[5] abind_1.4-5 lubridate_1.7.9 forcats_0.5.0 stringr_1.4.0
[9] dplyr_1.0.0 purrr_0.3.4 readr_1.3.1 tidyr_1.1.0
[13] tibble_3.0.3 ggplot2_3.3.2 tidyverse_1.3.0 workflowr_1.6.2
loaded via a namespace (and not attached):
[1] httr_1.4.2 jsonlite_1.7.0 viridisLite_0.3.0 here_0.1
[5] modelr_0.1.8 assertthat_0.2.1 blob_1.2.1 cellranger_1.1.0
[9] yaml_2.2.1 pillar_1.4.6 backports_1.1.8 glue_1.4.1
[13] digest_0.6.25 promises_1.1.1 checkmate_2.0.0 rvest_0.3.6
[17] colorspace_1.4-1 htmltools_0.5.0 httpuv_1.5.4 pkgconfig_2.0.3
[21] broom_0.7.0 haven_2.3.1 scales_1.1.1 whisker_0.4
[25] later_1.1.0.1 git2r_0.27.1 generics_0.0.2 farver_2.0.3
[29] ellipsis_0.3.1 withr_2.2.0 cli_2.0.2 magrittr_1.5
[33] crayon_1.3.4 readxl_1.3.1 evaluate_0.14 fs_1.4.2
[37] fansi_0.4.1 xml2_1.3.2 lwgeom_0.2-5 class_7.3-17
[41] tools_4.0.2 data.table_1.13.0 hms_0.5.3 lifecycle_0.2.0
[45] munsell_0.5.0 reprex_0.3.0 isoband_0.2.2 compiler_4.0.2
[49] e1071_1.7-3 rlang_0.4.7 classInt_0.4-3 units_0.6-7
[53] grid_4.0.2 rstudioapi_0.11 labeling_0.3 rmarkdown_2.3
[57] gtable_0.3.0 DBI_1.1.0 R6_2.4.1 knitr_1.29
[61] rprojroot_1.3-2 KernSmooth_2.23-17 stringi_1.4.6 parallel_4.0.2
[65] Rcpp_1.0.5 vctrs_0.3.2 dbplyr_1.4.4 tidyselect_1.1.0
[69] xfun_0.16