TSA_snow_cover: Find start and end date of snow cover

Description Usage Arguments Details Value Author(s) Examples

View source: R/TSA_snow_cover.R

Description

Give one data.frame of a location or a list of data.frames of multiple locations and the function returns the start and end date as well as the MDr in a output table

Usage

1
2
TSA_snow_cover(obs_stat, v1 = 0.1, v2 = 0.3, lengthsnow = 5,
  MDr.sd = 0.3)

Arguments

obs_stat

One dataframe of one location or a list of dataframes of multiple locations. A dataframe needs at least the following columns: Location name as loc_name; Mean daily GST as agg_avg; Minimum daily GST as agg_min; Maximum daily GST as agg_max; Daily sd as agg_sd; Date as time (in POSIXct and the following format: YYYY-MM-DD)

v1

Max. daily standard deviation indicating snow for POSITIVE Ground Surface Temperature. Default is 0.1.

v2

Max. daily standard deviation indicating snow for NEGATIVE Ground Surface Temperature. Default is 0.3.

lengthsnow

Number of days that the snow cover should at least have to be selected as a valid snow cover. Default is 5 days

MDr.sd

Threshold for the mean daily standard deviation for a snow period.

Details

At locations with perennial snow cover, the snow cover is splitted into water years periods.

Value

Dataframe with fields: loc_name; Snow.Start; Snow.End; MDr

Author(s)

Thomas Knecht <t.knecht@hotmail.com>

Examples

1
2
3
con <- dbpf_con()
BC_SO01_01 <- TSA_data_import(con, "BC16-SO01_01")
Snow_table <- TSA_snow_cover(BC_SO01_01, v1 = 0.1, v2 = 0.3, lengthsnow = 5, MDr.sd = 0.3)

geocryology/PermafrostTools documentation built on Dec. 20, 2021, 10:40 a.m.