ghcnCleaner: Cleans ghcn data by four iterated processes.

Description Usage Arguments Value

View source: R/ghcnCleaner.R

Description

(1) crop to year.range (2) purge years with gaps in the data longer than the cutoff length (3) interpolate across gaps <= the cutoff length (4) fill by average those days at the beginning and end of years with missing data (5) remove stations with less than min.years years of complete data

Usage

1
ghcnCleaner(data.list, year.range, na.cutoff, min.years = length(year.range))

Arguments

data.list

a list of GHCN data sets

year.range

the intended years

na.cutoff

the maximum length of gaps, above which a dataset is excluded.

min.years

the minimum number of years a dataset must include, below which a dataset is excluded.

Value

a clean set of ghcn data


bocinsky/guedesbocinsky2018 documentation built on May 3, 2019, 8:59 p.m.