spaofit: Apply the spatial loess fitting to the original observations...

Description Usage Arguments Author(s) Examples

Description

Call spaloess function on the spatial domain in each month in parallel. Every spatial domain uses the same smoothing parameters. NA observations will be imputed.

Usage

1
2
spaofit(input, output, info, model_control = spacetime.control(),
  cluster_control = mapreduce.control())

Arguments

input

The path of input sequence file on HDFS. It should be by-month division.

output

The path of output sequence file on HDFS. It is also by-month division but with seasonal and trend components

info

The RData on HDFS which contains all station metadata. Make sure copy the RData of station_info to HDFS first using rhput.

model_control

Should be a list object generated from spacetime.control function. The list including all necessary smoothing parameters of nonparametric fitting.

cluster_control

Should be a list object generated from mapreduce.control function. The list including all necessary Rhipe parameters and also user tunable MapReduce parameters.

Author(s)

Xiaosu Tong

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
    FileInput <- "/tmp/bymth"
    FileOutput <- "/tmp/bymthfit"
    ccontrol <- mapreduce.control(libLoc=NULL, reduceTask=0)
    mcontrol <- spacetime.control(
      vari="resp", time="date", n=576, n.p=12, stat_n=7738,
      s.window=13, t.window = 241, degree=2, span=0.015, Edeg=2
    )

    spaofit(
      FileInput, FileOutput,
      info="/tmp/station_info.RData",
      model_control=mcontrol, cluster_control=ccontrol
    )

## End(Not run)

XiaosuTong/drsstl documentation built on May 9, 2019, 11:06 p.m.