estimate_zeros: Estimating zeros

Description Usage Arguments Value

View source: R/estimate_zeros.R

Description

Provide estimates of zero observations cause by systematic under-estimation, using inverse Earth mover's distance weighting method for interpolations.

Usage

1
2
3
4
5
6
7
estimate_zeros(
  test_windspeed.afterSpatialQC.nonzero,
  test.station.windspeed,
  official.station.windspeed,
  test.nbhd_spatial.info,
  official.data.estimate = TRUE
)

Arguments

test_windspeed.afterSpatialQC.nonzero

a data.frame that includes observation data after spatial consistency check, with no zeros.

test.station.windspeed

a data.frame that includes observation data of test stations before spatial consistency check.

official.station.windspeed

a data.frame that includes observation data of official stations.

test.nbhd_spatial.info

output of function spatial_neighbors.

official.data.estimate

a logical variable that determines whether to include CWS data in estimating zeros. We set the default as TRUE, meaning that we use only official data in the estimation. If there are not enough neighboring official stations, we could then set official.data.estimate = FALSE to use both official and CWS data for the estimation.

Value

a new data.frame that includes wind speed observations after estimating zeros.


jieyu97/QCwind documentation built on June 18, 2021, 3:37 a.m.