7 Site validation
7.1 Auto site validation & use and assessment unit assignments
Performs an automated validation of site locations (e.g. appropriate sample location types, waterbody types, jurisdictions etc.). Also performs a spatial join between sites and beneficial use and assessment unit polygons to assign uses and AUs to sites.
autoValidateWQPsites(
sites_object=irdata$sites,
master_site_file="02-site-validation/IR_master_site_file.csv",
waterbody_type_file = "lookup-tables/waterbody_type_domain_table.csv",
polygon_path="02-site-validation/polygons",
outfile_path="02-site-validation"
)
7.2 Manual site validation
Performed a test manual site validation by accepting, rejecting, and merging a number of sites through multiple iterations of the application. See ‘02-site-validation’ folder. Data from all sites still requiring review will be rejected at a later step. A ‘ReviewComment’ column was manually added to the master site list file. The site list and flat reasons files were manually added to a single .xlsx workbook to interface with the site review application (tabnames ‘sites’ and ‘reasons’).
To run remotely: Site review application
To run locally:
irTools::runSiteValApp()