key_dates: Locate stratification or ice on/off dates

Description Usage Arguments Value

View source: R/key_dates.R

Description

Calculate dates of stratification or ice on/off dates. Ice on/off calculation is based on Pierson et al. (2011) formula when the upper sensor records a temperature of at least -0.1C below that of the bottom sensor. Stratification is based on the opposite principle i.e when there is a difference of +0.1C between the top and bottom sensor.

Usage

1
key_dates(data, type = "strat", days = 7, Tmin = 0.1, tz = "UTC")

Arguments

data

dataframe; Water temperature profile data in the long form as loaded in using load.obs

type

character; Which dates to caclulate, either ice or stratification on/off. Defaults to 'strat'.

days

numeric; no. of days of consecutive days before identifying a break. Defaults to 7.

Tmin

numeric; Minimum temperature as a cutoff point for identifying breaks. Defaults to 0.1

tz

Timezone string to be supplied to as.POSIXct. Defaults to 'UTC'. This often can be left to the default unless timezone support is specifically required.

Value

vector with dates of stratification or ice on/off


tadhg-moore/gotmtools documentation built on Oct. 9, 2019, 2:48 p.m.