Giter Club home page Giter Club logo

serac's Introduction

serac

an R package for ShortlivEd RAdionuclide Chronology of recent sediment cores.

To report a problem, email me or use the Github "Issues" tool.

Citation

Bruel, R., Sabatier, P., 2020. serac: an R package for ShortlivEd RAdionuclide chronology of recent sediment cores. Journal of Environmental Radioactivity 225, 106449. https://doi.org/10.1016/j.jenvrad.2020.106449

Download

serac is not available on CRAN, but can be downloaded directly from this GitHub repository:

install.packages("devtools")
devtools::install_github("rosalieb/serac", build_vignettes = TRUE)
library(serac)

Get started

See the vignette (vignette("serac")) for a complete example of the functionalities of serac. We included in the package an example dataset for Lake Allos (Wilhelm et al., 2012), that allows you to reproduce the age-depth model for the core ALO09P12.

Refer to our paper (Bruel and Sabatier, 2020) for more examples.

Figure 1. Age-depth model for the core ALO09P12 as in Wilhelm et al. (2012), built with the package serac.

Directly skip to your first age-depth model

If you want to quickly run a first example, here is the main code allowing you to generate an age-depth model:

# Install and load the package and the vignette
devtools::install_github("rosalieb/serac", build_vignettes = TRUE)
library(serac)
vignette("serac")

# Create a folder for the data
dir.create(file.path(getwd(), 'Cores'), showWarnings = FALSE)
dir.create(file.path(paste0(getwd(),'/Cores'), 'serac_example_ALO09P12'), showWarnings = FALSE)

# Write in the main data
write.table(x = serac_example_ALO09P12, file = paste0(getwd(),'/Cores/serac_example_ALO09P12/serac_example_ALO09P12.txt'),col.names = T, row.names = F,sep="\t")
# Including proxy data for this core too
write.table(x = serac_example_ALO09P12_proxy, file = paste0(getwd(),'/Cores/serac_example_ALO09P12/serac_example_ALO09P12_proxy.txt'),col.names = T, row.names = F,sep="\t")

# Code for the age-depth model
model_ALO09P12 <-
  serac(name="serac_example_ALO09P12", coring_yr=2009, model=c("CFCS"),
        plotphoto=FALSE, minphoto=c(0), maxphoto=c(210),
        plot_Pb=T, plot_Am=T, plot_Cs=T, Cher=c(30,40), Hemisphere=c("NH"), NWT=c(51,61),
        sedchange=c(75.5),
        plot_Pb_inst_deposit=T, inst_deposit=c(20,28,100,107,135,142,158,186),
        suppdescriptor=TRUE, descriptor_lab=c("Ca/Fe"),
        historic_d=c(20,28,100,107,135,142,158,186),
        historic_a=c(1994,1920,1886,1868),
        historic_n=c("sept 1994 flood","1920 flood","1886 flood","1868 flood ?"), 
        min_yr=c(1750),
        dmax=c(180), 
        plotpdf=T, preview=T,
        save_code=FALSE)

serac's People

Contributors

rosalieb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

hgudipati jfviola

serac's Issues

Negative Pb-210_xs

Hello Rosalie,
First of all, thank you very much for this great tool!
I wonder what you'd recommend to do when there are negative values of excess 210Pb in the profile. Because excess 210Pb is a calculated value from two measurements, which both have some uncertainty connected to them, it's only natural when the values close to the base of the core, where no or little excess is present, tend to be distributed on both sides of 0. I think ignoring these values introduces a bias.
Could a model with a fixed offset be used to avoid negatives, when the linearized fit (using log values) is used?
Or a non-linear fit on original values, which could directly deal with negative?
Cheers!
Dana

Cs-137 (line plot)

Hey Rosalie,
Is there a way of disabling the points in Cs-137 plot being connected by a line? It's a bit misleading in case some values are missing (not measured or below detection limit). Instead, some way of adding values of level of determination (< = less than) would be great. But already not having the line plot would be a great improvement.
Cheers!
Dana

problem with sedchange

Hi, i m trying to include sedchange in serac. Before to add the sedchange string in the model, i have no problem, the model is working well and i have good results, after using sedchage=c(XX), the model is not working. there are not outputs.
Do u have any suggestions? thanks a lot for the help.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.