revise_locaiton: Revise meteorological station's location error

View source: R/st-revise_locaiton_multi.R

revise_locaitonR Documentation

Revise meteorological station's location error

Description

Revise meteorological station's location error

Usage

revise_locaiton(
  d,
  prefix = "",
  dist_max = 100,
  score_min = 2,
  vars_rm = c("date_begin", "date_end", "n_all"),
  verbose = 2
)

revise_locaiton_multi(info, dist_max = 50)

Arguments

d

A data.frame with the columns at least of 'dist', 'lon', 'lat', 'alt' and 'n_period', 'QC'

dist_max

If the site moving distance beyond the 'dist_max', it will be regarded as outlier and will be fixed by [revise_location()].

score_min

if distance score lower than 'score_min', will not fix

vars_rm

variables not shown in the console

info

site moving info returned by [get_moveInfo()]

Details

Continuous moving location outliers are also considered at here.

Value

- sites with not outliers, QC = ”; - sites with outliers, for outliers, QC equals: score = 0: unfixed score = 1: marginal quality fixed score = 2: good quality fixed

Examples

d <- st_moveInfo[site == 50772]
revise_locaiton_multi(d)


kongdd/MissInfo documentation built on Jan. 14, 2024, 2:22 a.m.