StratigrapheR is an open-source integrated stratigraphy package. It is available in the free software environment R (https://CRAN.R-project.org/package=StratigrapheR) and is designed to generate lithologs in a semi-automated way, to process stratigraphical information, and to visualize any plot along the lithologs in the R environment. The basic graphical principle behind StratigrapheR is the incremental addition of elements to a drawing: a plot is opened, and graphical elements are successively added. This allows compartmentalisation of the drawing process, as well as the superposition of different plots for comparison. For instance a litholog of a single section can be written as a single function including all the drawing sub-functions, and be integrated in a larger plot, for instance to be correlated to other sections or to show proxy data. The StratigrapheR package is designed for efficient work, and minimum coding, while still allowing versatility. The lithological information of beds (upper and lower boundary, hardness, lithology, etc.) is converted into polygons. All polygons are drawn together using a single function, and each polygon can have its personalised symbology allowing to distinguish lithologies. A similar workflow can be used for plotting proxies while distinguishing each sample by their lithology. Vector graphics can be imported as SVG files, and precisely drawn with the lithologs to serve as symbols or complex elements. Every type of symbol is plotted by calling one single function which repeats the drawing for each occurrence of the represented feature. This illustrates that the amount of work invested to make lithologs using StratigrapheR is related to their complexity rather than their length: a long but monotonous litholog (e.g. of marl-limestone alternations) only takes a few lines of code to generate. The StratigrapheR package also provides a set of functions to deal with selected stratigraphic intervals (for instance in the [0,1[ form): they allow simplification, merging, inversion and visualisation of intervals, as well as identifying the samples included in the given intervals, and characterising the relation of the intervals with each other (overlap, neighbouring, etc.). StratigrapheR includes PDF and SVG generation of plots, of any dimension. The generated PDF can even store multiple plots in a single file (each plot on a different page) to document data processing comprehensively.
Located in
Library
/
RBINS Staff Publications 2020
Cyclostratigraphy is increasingly used to improve the Geologic Time Scale and our understanding of past climatic systems. However, except in a few existing methodologies, the quality of the results is often not evaluated. We propose a new methodology to document this quality, through a decomposition of a signal into a set of narrow band components from which instantaneous frequency and amplitude can be computed, using the Hilbert transform. The components can be obtained by Empirical Mode Decomposition (EMD), but also by filtering a signal (be it tuned or not) in any relevant way, and by subsequently performing EMD on the signal minus its filtered parts. From that decomposition, verification is performed to estimate the pertinence of the results, based on different concepts that we introduce: Integrity quantifies to what extent the sum of the components is equal to the signal. It is defined as the cumulated difference between (1) the signal, and (2) the summed components of the decomposition. EMD fulfils integrity by design, except for errors caused by floating-decimal arithmetic. Ensemble Empirical Mode Decomposition (EEMD) may fail to satisfy integrity unless noisy realisations are carefully chosen in the algorithm to cancel each other when averaging the realisations. We present such an algorithm implemented in R: “extricate”, which performs EEMD in a few seconds. Parsimony checks that the decomposition does not generate components that heavily cancel out. We propose to quantify it as the ratio between (1) the cumulated absolute values of each component (except the trend), and (2) the cumulated absolute values of the signal (minus the trend). The trend should be ignored in the calculation, because an added trend decreases the parsimony estimation of a similar decomposition. IMF departure (IMFD) quantifies the departure of each component to the definition of intrinsic mode functions (IMF), from which instantaneous frequency can reliably be computed. We define it as the mean of the absolute differences of the base 2 logarithms of frequencies obtained using (1) a robust generalized zero-crossing method (GZC, which simplifies the components into extrema separated by zero-crossings) and (2) a more local method such as the Hilbert Transform. Reversibility is the concept that all initial data points are preserved, even after linear interpolation and tuning. This allows to revert back to the original signal and discuss the significance of each data point. To facilitate reversibility we introduce the concept of quanta (smallest depth or time interval having significance for a given sampling) and an algorithm computing the highest rational common divisor of given values in R: “divisor”. This new methodology allows to check the final result of cyclostratigraphic analysis independently of how it was performed (i.e. a posteriori). Once the above-mentioned concepts are taken into account, the instantaneous frequencies, ratios of frequencies and amplitudes of the components can be computed and used to interpret the pertinence of the analysis in a geologically meaningful way. The instantaneity and independence of frequency and amplitude so obtained open a new way of performing time-series analysis.
Located in
Library
/
RBINS Staff Publications 2020