Snaps the coordinates of the provided calibration gauges to the respective midpoint of the nearest channel cell.

# S4 method for RPhosFate
snapGauges(x)

Arguments

x

An S4 RPhosFate river catchment object.

Value

An S4 RPhosFate river catchment object.

Examples


# temporary demonstration project copy
cv_dir <- demoProject()
#> Warning: A folder called "demoProject" already exists and is left as is.
# load temporary demonstration project
x <- RPhosFate(
  cv_dir = cv_dir,
  ls_ini = TRUE
)

x <- snapGauges(x)