sparfit: Apply the spatial loess fitting on the remainder at all...

Description Usage Arguments Author(s) Examples

Description

Call spaloess function on the spatial domain at each time point in parallel. Every spatial domain uses the same smoothing parameters

Usage

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

Arguments

input

The path of input file on HDFS. It should be by-month division with temporal fitting results.

output

The path of output file on HDFS. It is by-month division but with added spatial fitted value for remainder, named Rspa.

info

The RData path on HDFS which contains all station metadata

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
## Not run: 
    FileInput <- "/tmp/bymthse"
    FileOutput <- "/tmp/bymthfitse"
    ccontrol <- mapreduce.control(libLoc=NULL, reduceTask=0, BLK=128)
    mcontrol <- spacetime.control(
      vari="remainder", time="date", n=786432, n.p=12,
      s.window=13, t.window = 241, degree=2, span=0.015, Edeg=2
    )

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

## End(Not run)

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