Full code base and data for Revisiting oxygen-18 and clumped isotopes in planktic and benthic foraminifera, by Daëron & Gray (2023). Preprint available here.
Any questions/suggestions/comments/rants? Please open an issue on github or contact the authors.
To install the required Python environemnt:
conda env create -f environment.yml
conda activate isoForam
It may be faster to use mamba
instaed of conda
in the first line:
mamba env create -f environment.yml
conda activate isoForam
To execute the code, simply call make
from the root directory. Most files output during the previous run will be deleted, so that each code run will start from a clean state. But this means that you should copy any output files you wish to save to another directory.
Throughout the code, some expensive calculations are skipped by default, using instead values stored after earlier runs. This should be obvious based on such boolean flags as:
RUN_EXPENSIVE_CALCULATION = False
Simply change these flags to True
to run the computation from scratch.
The Breitkreutz et al. (2018), WOA23, and GLODAPv2 data are not included here but conveniently located readme
files are included in their place, with the corresponding URLs and instructions as to which files are needed.
Most files generated in the code run will be copied to the output
directory. One of those files, named foram_D47_calibration_data.csv
, provides a very detailed listing of all properties computed for each sample in the clumped-isotope data set. Here is a list of the fields in this table:
Sample
: sample name, usually corresponding to a unique combination ofSite
&Species
Species
: foraminifer speciesType
:benthic
orplanktic
Site
: core-top site nameLat
: core-top latitudeLon
: core-top longitudeDepth
: for benthic samples, the core-top depth; for planktics, the assumed range of calcification depthsd13C_VPDB
: δ13C value of the sample in the VPDB scaleSE_d13C_VPDB
: SE of the aboved18O_VPDB
: δ18O value of the sample in the VPDB scaleSE_d18O_VPDB
: SE of the aboveD47_ICDES
: Δ47 value of the sample in the I-CDES scaleSE_D47_ICDES
: SE of the aboveTpub
: for benthic samples, originally published calcification temperatureSE_Tpub
: SE of the aboveTwoa23
: Calcification temperature estimate from atlas (WOA23); for planktics, based on assumed calcification depthsSE_Twoa23
: SE of the aboveTwoa23_500m
: Calcification temperature estimate from atlas (WOA23); for planktics, based on the whole interval 0-500 mSE_Twoa23_500m
: SE of the aboveTwoa23_1500m
: Calcification temperature estimate from atlas (WOA23); for planktics, based on the whole interval 0-1500 mSE_Twoa23_1500m
: SE of the aboveTbottom_woa23
: Bottom temperature estimate from atlas (WOA23); for benthics, identical toTwoa23
SE_Tbottom_woa23
: SE of the aboveTk18
: Calcification temperature estimate from Breitkreuz et al. (2018); for planktics, based on assumed calcification depthsSE_Tk18
: SE of the aboveTk18_500m
: Calcification temperature estimate from Breitkreuz et al. (2018); for planktics, based on the whole interval 0-500 mSE_Tk18_500m
: SE of the aboveTk18_1500m
: Calcification temperature estimate from Breitkreuz et al. (2018); for planktics, based on the whole interval 0-1500 mSE_Tk18
: SE of the aboveTiso_species_offset
: which B value (from table 4 in Daëron & Gray in was used to compute 18αTiso_species
: Calcification temperature estimate based on the 18α calibrations compiled in table 4 of Daëron & Gray; for planktics, based on assumed calcification depthsSE_Tiso_species
: SE of the aboveTiso_species_500m
: Calcification temperature estimate based on the 18α calibrations compiled in table 4 of Daëron & Gray; for planktics, based on the whole interval 0-500 mSE_Tiso_species_500m
: SE of the aboveTiso_species_1500m
: Calcification temperature estimate based on the 18α calibrations compiled in table 4 of Daëron & Gray; for planktics, based on the whole interval 0-1500 mSE_Tiso_species_1500m
: SE of the aboveTiso_KON97
: Calcification temperature estimate based on Kim & O'Neil (1997); for planktics, based on assumed calcification depthsSE_Tiso_KON97
: SE of the aboveTwoa23_vs_Tiso_species
: whether the sample is “discordant” or not, as defined by Daëron & Gray, based on assumed calcification depthsTwoa23_vs_Tiso_species_500m
: whether the sample is “discordant” or not (as defined by Daëron & Gray), based on the whole interval 0-500 mTwoa23_vs_Tiso_species_1500m
: whether the sample is “discordant” or not (as defined by Daëron & Gray), based on the whole interval 0-1500 mRef
: Which studie this sample first appeared in