qc_check_coordinates: Site coordinates checking

Description Usage Arguments Details Value See Also

Description

qc_check_coordinates verifies if provided coordinates are within country declared in metadata form.

Usage

1
2
qc_check_coordinates(data, maps_folder = getwd(), plot = FALSE,
  text_report = TRUE, parent_logger = "test")

Arguments

data

Data frame with data. At least, longitude, latitude, country and site name variables must be present in the data object.

maps_folder

Folder route where the maps are stored, by default the working directory. It must be a character object and it must end without /.

plot

Logical indicating if plots for coordinate are created and saved in the working directory. By default, plot are not saved.

text_report

Logical indicating if a text report is showed in the console after checking coordinates. By default, a report is showed in the console.

Details

This function internally download the maps with qc_download_maps and it checks if the provided coordinates are within the country limits. It only creates a data frame containing country, site and a logical variable indicating if coordinates are correct.

Value

The data frame used as input with a new variable, is_inside_country, a logical variable indicating if the site has wrong coordinates

See Also

Other Quality Check Functions: qc_coord_sign_test, qc_download_maps, qc_fix_latlong_errors


sapfluxnet/sapfluxnetQC1 documentation built on May 29, 2019, 1:50 p.m.