Skip to contents

Checks a QWAimages object before submission; also run by check_QWAmetadata(). Aborts if the object is not a valid QWAimages (structure labels missing or NA, duplicate image_labels, $software not matching the roxas_version attribute). Warns (or, with strict = TRUE, aborts) on:

  • values violating the JSON schema of the given stage;

  • an unsound data structure: labels not starting with their parent label, or a label in more than one parent;

  • outmost_year in the future;

  • missing spatial_resolution.

Usage

check_QWAimages(x, submission = TRUE, strict = FALSE)

Arguments

x

A QWAimages object.

submission

Check against the schema of submission files (TRUE) or TRIA dataset files (FALSE)? Set by check_QWAmetadata().

strict

If TRUE, abort on the first issue instead of warning.

Value

TRUE if no issue was found, FALSE otherwise (invisibly).

Details

Also informs about missing optional columns and empty values, except for the source file names (fname_*, only needed during processing) and the often incomplete EXIF data (img_created_at, img_software).