curve2time {WaverideR} | R Documentation |
Convert the tracked curve to a depth time space
Description
Converts the tracked curve to a depth time space.
Usage
curve2time(
tracked_cycle_curve = NULL,
tracked_cycle_period = NULL,
genplot = FALSE,
keep_editable = FALSE
)
Arguments
tracked_cycle_curve |
Curve of the cycle tracked using the
|
tracked_cycle_period |
Period of the tracked curve in kyr. |
genplot |
Generates a plot with depth vs time |
keep_editable |
Keep option to add extra features after plotting |
Value
The output is a matrix with 2 columns.
The first column is depth.
The second column sedimentation rate in cm/kyr.
If genplot=TRUE
then a depth vs time plot will be plotted.
Author(s)
Based on the sedrate2time function of the 'astrochron' R package
References
Routines for astrochronologic testing, astronomical time scale construction, and time series analysis <doi:10.1016/j.earscirev.2018.11.015>
Examples
#Convert a tracked curve to a depth time space. The examples uses the
#magnetic susceptibility data set of Pas et al., (2018).
#'# perform the CWT
mag_wt <- analyze_wavelet(data = mag,
dj = 1/100,
lowerPeriod = 0.1,
upperPeriod = 254,
verbose = FALSE,
omega_nr = 10)
#Track the 405 kyr eccentricity cycle in a wavelet spectra
#mag_track <- track_period_wavelet(astro_cycle = 405,
# wavelet=mag_wt,
# n.levels = 100,
# periodlab = "Period (metres)",
# x_lab = "depth (metres)")
#Instead of tracking, the tracked solution data set mag_track_solution is used
mag_track <- mag_track_solution
mag_track_complete <- completed_series(
wavelet = mag_wt,
tracked_curve = mag_track,
period_up = 1.2,
period_down = 0.8,
extrapolate = TRUE,
genplot = FALSE
)
# smooth the tracking of the 405 kyr eccentricity cycle
mag_track_complete <- loess_auto(time_series = mag_track_complete,
genplot = FALSE, print_span = FALSE)
#convert period in meters to sedrate depth vs time
mag_track_time<- curve2time(tracked_cycle_curve=mag_track_complete,
tracked_cycle_period=405,
genplot=FALSE,
keep_editable=FALSE)