internal_consistency: Daily internal consistency test

View source: R/C3FURV.R

internal_consistencyR Documentation

Daily internal consistency test

Description

Determines the coherence between daily maximum temperature (Tx) values and daily minimum temperature (Tn) values; daily wind speed (w) and wind direction (dd); daily snow cover (sc) and snow depth (sd); daily fresh snow (fs) and snow depth (sd); daily fresh snow (fs) and minimum temperature (Tn); daily snow depth (sd) and minimum temperature (Tn).

Usage

internal_consistency(dailydata, meta = NULL, outpath)

Arguments

dailydata

A character vector giving the paths of two input files, or a 5-column matrix with following columns: variable code, year, month, day, and the daily value.

meta

A data frame with 2 rows and 6 columns: station ID, latitude, longitude, altitude, variable code, units. If dailydata is a vector, meta is ignored.

outpath

Character string giving the path for the QC results.

Details

The input file must follow the Copernicus Station Exchange Format (SEF).

The daily minimum temperature is assumed to be observed at the same time of the snow depth / fresh snow, and to refer to the same 24-hour period. Snow accumulation is flagged if the minimum temperature is higher than 3 degrees Celsius.

Author(s)

Alba Gilabert, Yuri Brugnara

Examples

internal_consistency(rbind(Rosario$Tx, Rosario$Tn), 
                     rbind(Meta$Tx, Meta$Tn),
                     outpath = tempdir())


c3s-data-rescue-service/dataresqc documentation built on April 10, 2023, 4:18 p.m.