# set path to file
path_file <- system.file('extdata', 'ianigla_cuevas.csv',
package = 'hydrotoolbox')
# read with default names
cuevas <- read_ianigla(path = path_file,
out_name = c('tair(°C)', 'rh(%)', 'patm(mbar)',
'p(mm)', 'wspd(km/hr)', 'wdir(°)',
'kin(kW/m2)', 'hsnow(cm)', 'tsoil(°C)') )
# remove spikes in snow heigh series
cuevas %>%
rm_spike(col_name = 'hsnow(cm)',
out_name = 'hsnow',
tolerance = 50) # 50 cm of snow its OK for this zone
Run the code above in your browser using DataLab