Validate Wild Fishing Survey Data
validate_wf_surveys.Rd
Validates survey data from wild fishing activities by applying quality control checks and flagging potential data issues. The function filters out submissions that don't meet validation criteria and processes catch data.
Usage
validate_wf_surveys(log_threshold = logger::DEBUG)
Value
The function processes and uploads two datasets to cloud storage:
Validation flags for each submission
Validated survey data with invalid submissions removed
Details
The function applies the following validation checks:
Bucket weight validation (max 50 kg per bucket)
Number of buckets validation (max 300 buckets)
Number of individuals validation (max 100 individuals)
Form completeness check for catch details
Catch information completeness check
Alert codes:
5: Bucket weight exceeds maximum
6: Number of buckets exceeds maximum
7: Number of individuals exceeds maximum
8: Incomplete catch form
9: Incomplete catch information