guessDatetagsSimple: Guess datetags from deposition dates in simulated profiles

View source: R/deriveDatetag.R

guessDatetagsSimpleR Documentation

Guess datetags from deposition dates in simulated profiles

Description

This routine provides a simple heuristic for assigning datetags to layers. Datetags usually are deposition dates for crust layers, and burial dates for other weak layers (e.g., SH, FC). If no datetags can be derived, a datetag column of NAs will be added. Burial dates (bdate) are computed via deriveBDate.

Usage

guessDatetagsSimple(x, adjust_bdates = TRUE, ...)

## S3 method for class 'snowprofileSet'
guessDatetagsSimple(x, adjust_bdates = TRUE, ...)

## S3 method for class 'snowprofile'
guessDatetagsSimple(x, adjust_bdates = TRUE, checkMonotonicity = FALSE, ...)

## S3 method for class 'snowprofileLayers'
guessDatetagsSimple(x, adjust_bdates = TRUE, checkMonotonicity = TRUE, ...)

Arguments

x

a snowprofileSet, snowprofile or snowprofileLayers object

adjust_bdates

boolean switch to compute bdates similar to human interpretation. see Details.

...

passed on to subsequent methods

checkMonotonicity

check ascending order of layers. This acts as a check for whether multiple layers objects are stacked, which is not allowed.

Value

The input object will be returned with the columns datetag and bdate added to the profile layers

Methods (by class)

  • guessDatetagsSimple(snowprofileSet): for snowprofileSets

  • guessDatetagsSimple(snowprofile): for snowprofiles

  • guessDatetagsSimple(snowprofileLayers): for snowprofileLayers

Author(s)

fherla


sarp.snowprofile documentation built on Jan. 14, 2026, 9:06 a.m.