Published December 20, 2019 | Version 1.0
Software Open

MATLAB scripts to produce OxCal chronologies for SISAL database (scripts V1)

  • 1. University College Dublin
  • 2. School of Archaeology, Geography & Environmental Sciences, Reading University

Description

These MATLAB scripts are developed for creating OxCal (Bronk Ramsey 2009) age models for a large number of speleothems from SISAL database. These scripts are created using MATLAB 2019 and are designed to work with current version of OxCal (4.3).

These scripts have been tested with SISALv2 (UoR link (https://doi.org/10.17864/1947.242), Comas-Bru et al 2020 (under review, https://doi.org/10.5194/essd-2020-39)). In order to assure traceability, any presentation, report, or publication that uses the automated OxCal scripts should cite ZENODO, UoR LINK and Database paper. These scripts are licensed by the rights-holder(s) under a Creative Commons Attribution 4.0 International Licence: https://creativecommons.org/licenses/by/4.0/.

A short description of all steps and the scripts and functions involved in each step are given below. For more detailed instructions and examples please read the Introduction, Notes, Instructions and naming conventions sections at the beginning of each MATLAB code (*.m file). For questions please contact sahar.amirnejad@gmail.com.

 

STEP 1) creating the input files for OxCal using script "SISAL_1_OxCal_Input_Generator_v1.m"
This script queries the SISAL database, removes records that are not suitable for creating age models and cleans the data. Then it translates the chronological data from SISAL database format into the Chronological Query Language (CQL2) notation of OxCal and writes them into an OxCal input file which is named by the entity ID (EID) from SISAL database (EID.oxcal).

STEP 2) running the OxCal program for all the oxcal input files that were created in the previous step using "SISAL_2_OxCal_cmdline_batch_executor_v1.m"
This script makes a list of all the *.oxcal files in the given directory and runs the OxCalWin.exe (available for download from https://c14.arch.ox.ac.uk/oxcal.html) for all of them. This step results in 4 other files for each entity:
    -EID.log which contains a text version of the output
    -EID.txt - which contains a tab delimited tabular output
    -EID.js - which is the ECMA-Script encoded version of the output used by the OxCal output viewer and the code in step 3
    -ensembles_EID.csv - which is the age ensemble for that entity

STEP 3) extracting the age depth model and quality metrics from V.js file using script "SISAL_3_OxCal_Output_Extractor_v1.m" and function "grep.m" (available for download from https://www.mathworks.com/matlabcentral/fileexchange/9647-grep-a-pedestrian-very-fast-grep-utility)
This script extracts all the necessary data and metadata of the age depth model from all the *.js files and tabulates and reports them. It also interpolates the age depth model for the isotope depths for each entity from SISAL database to produce the proxy chronologies. This script can also produce age depth plots and isotope timeseries plots for each entity for comparison of SISAL OxCal chronologies with the original chronologies.

STEP 4) extracting and post-processing the ensemble files ensembles_EID.csv using script "SISAL_4_OxCal_ensemble_interpolator_v1.m" and function "ensembleseader0.m"
This step is only necessary for extraction of ensembles.
This script reads the ensemble file for each entity, trims it to keep only the last 2000 iterations, corrects the age reference from CE/BCE back to BP (where present is 1950 CE)  and then interpolates the age depth model for the isotope depths.

Notes

SISAL (Speleothem Isotopes Synthesis and Analysis) is a working group of the Past Global Changes (PAGES) programme. We thank PAGES for their support for this activity. Additional financial support for development of these scripts have been provided by Geological Survey Ireland Short Call grant number 2017-SC-056 and the ERC-funded project GC2.0 (Global Change 2.0: Unlocking the past for a clearer future, grant no. 694481).

Files

0_ReadMe.txt

Files (216.7 kB)

Name Size Download all
md5:5152247e6cde916f3898834cc73a53bc
8.1 kB Preview Download
md5:be0322b24c0e9268754a4f92bb188fff
3.7 kB Download
md5:23ce929933e5d695c06362324a64e372
34.0 kB Download
md5:902b65eb86574bd3dfec064b7a89223c
51.3 kB Preview Download
md5:409a1f0f550867dafb3a785293ac4711
29.9 kB Download
md5:c5e0a7a40d6e75fb39f5035ea5cfd82e
5.6 kB Download
md5:9820bf47ebdde31198686722aa04dda5
71.4 kB Download
md5:06554d4b530bdebc22c2fd74ec2fb324
12.8 kB Download

Additional details

Related works

Continues
Dataset: 10.5281/zenodo.3816804 (DOI)
Is cited by
Journal article: 10.5194/essd-2020-39 (DOI)
References
Dataset: 10.17864/1947.242 (DOI)

References

  • Comas-Bru, L., Rehfeld, K., Roesch, C., Amirnezhad-Mozhdehi, S., Harrison, S. P., Atsawawaranunt, K., Ahmad, S. M., Ait Brahim, Y., Baker, A., Bosomworth, M., Breitenbach, S. F. M., Burstyn, Y., Columbu, A., Deininger, M., Demény, A., Dixon, B., Fohlmeister, J., Hatvani, I. G., Hu, J., Kaushal, N., Kern, Z., Labuhn, I., Lechleitner, F. A., Lorrey, A., Martrat, B., Novello, V. F., Oster, J., Pérez-Mejías, C., Scholz, D., Scroxton, N., Sinha, N., Ward, B. M., Warken, S., Zhang, H., and the SISAL members: SISALv2: A comprehensive speleothem isotope database with multiple age-depth models, Earth Syst. Sci. Data Discuss., https://doi.org/10.5194/essd-2020-39, in review, 2020.
  • Atsawawaranunt, K., Comas-Bru, L., Amirnezhad Mozhdehi, S., Deininger, M., Harrison, S. P., Baker, A., Boyd, M., Kaushal, N., Ahmad, S. M., Ait Brahim, Y., Arienzo, M., Bajo, P., Braun, K., Burstyn, Y., Chawchai, S., Duan, W., Hatvani, I. G., Hu, J., Kern, Z., Labuhn, I., Lachniet, M., Lechleitner, F. A., Lorrey, A., Pérez-Mejías, C., Pickering, R., Scroxton, N., and SISAL Working Group Members: The SISAL database: a global resource to document oxygen and carbon isotope records from speleothems, Earth Syst. Sci. Data, 10, 1687–1713, https://doi.org/10.5194/essd-10-1687-2018, 2018.
  • Bronk Ramsey, C. (2009). Bayesian analysis of radiocarbon dates. Radiocarbon, 51(1), 337-360.
  • Bronk Ramsey, C. (2008). Deposition models for chronological records. Quaternary Science Reviews, 27(1-2), 42-60.
  • Bronk Ramsey, C., & Lee, S. (2013). Recent and Planned Developments of the Program OxCal. Radiocarbon, 55(2-3), 720-730.