spatial_neighbors: Selecting neighbors for each test station

Description Usage Arguments Value

View source: R/spatial_neighbors.R

Description

Selecting neighbors for each test station according to geographical distance, correlation, Earth mover's distance.

Usage

1
2
3
4
5
6
7
spatial_neighbors(
  test.station.windspeed,
  official.station.windspeed,
  test.station.info,
  official.station.info,
  emd_radius = 1
)

Arguments

test.station.windspeed

a data.frame that includes observation data of all test stations.

official.station.windspeed

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

test.station.info

a tbl_df that includes 'station_id', 'longitude', 'latitude' of test stations, corresponding to their column number in test.station.windspeed.

official.station.info

a tbl_df that includes 'location', 'longitude', 'latitude' of official stations, corresponding to their column number in official.station.windspeed.

emd_radius

the maximum radius of Earth mover's distance, setting 1 as default.

Value

a large list, each element is a data.frame that contains information of selected neighbors.


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