# NOT RUN {
# fill two hour gaps
raw <- example.data(type = "doy")
input <-
is.trex(
raw,
tz = "GMT",
time.format = "%H:%M",
solar.time = TRUE,
long.deg = 7.7459,
ref.add = FALSE,
df = FALSE)
# create gaps in data
input[which(input < 0.4 | input > 0.82)] <- NA
fill_120 <- gap.fill(
input = input,
max.gap = 120,
decimals = 10,
df = FALSE)
fill_15 <- gap.fill(
input = input,
max.gap = 15,
decimals = 10,
df = FALSE)
# }
Run the code above in your browser using DataLab