raw images
flight log
study area outline
GCP coordinates
telemetry files
ground samples
other photos
video files basemap layers
How do we get our drone data to be FAIR compliant?
uasimg
OverviewR package with functions to help you:
https://is.gd/uas_data_aag2019
This will:
You can process multiple directories at once
A “Flight Info” object by itself is not very useful!
Image metadata
Flight metadata
uasimg
uses flight metadata for i) cataloging, ii) searching, and iii) creating directory trees
Recommended way to record flight metadata - Notepad!
## [1] "name_short" "name_long" "description" "proj" "loc"
## [6] "pilot" "contact" "uav" "data_url" "tags"
## [11] "notes"
You don’t have to start from scratch!
uas_setflds()
Re-run uas_info()
after you edit flight metadata!
If desired, you can export the flight geometry:
You can move your data by hand or with a function:
Function options:
{proj}/{loc}/{subloc}/imgs/{flt_date}/{flt_start}-{flt_end}_{camera_abbrev}
{proj}/{loc}/{subloc}/gis
{proj}/{loc}/{subloc}/p4d
{proj}/{loc}/{subloc}/documents
Create HTML flight summary for one or more Flight Info object(s):
Report options:
Feed a list of Flight Summary HTML files.
uas_toc(c("d:/uas/ptpinole/west/march2020/dcim/map/ptpinole_mar2020.html",
"d:/uas/ptpinole/west/jul2020/dcim/map/ptpinole_jul2020.html",
"d:/uas/ptpinole/west/oct2020/dcim/map/ptpinole_oct2020.html"))
It will extract flight metadata fields from the HTML file for the table-of-contents.
Function options:
library(uasimg)
## Set the working directory to the parent directory of the image folders:
setwd("D:\\Pix4D\\HREC\\Watershed1\\Data\\2017-01-16_X5")
hrec_dirs <- c("Flight01_1514_1526_400ft", "Flight02_1532_1540_400ft")
file.exists(hrec_dirs)
## Make metadata text files
# uas_metadata_make(hrec_dirs, make_new = TRUE, overwrite = FALSE, open = TRUE, use_system_editor = TRUE)
## Extract flight metadata
hrec_info <- uas_info(hrec_dirs, fp = TRUE)
## Create reports
hrec_rpt <- uas_report(hrec_info, thumbnails = FALSE,
attachments = c("mcp_kml", "ctr_kml"),
footer_html = "D:\\GitHub\\uasimg\\headers_footers\\footer_igis.html",
png_map = TRUE, group_img = FALSE, show_local_dir = TRUE,
overwrite_html = TRUE, open_report = TRUE)
## Create a TOC
hrec_toc <- uas_toc(hrec_rpt,
toc_title = "HREC Watershed2, January 2017",
output_dir = ".",
fltmap_base = list(list(kml_fn = "D:\\Pix4D\\HREC\\Baselayers\\hopland.kml",
color = "red",
weight = 2)),
fltmap_kml = TRUE,
footer_html = "D:\\GitHub\\uasimg\\headers_footers\\footer_igis.html",
open_toc = TRUE, overwrite_toc = TRUE)
‘World Files’ are plain-text files (also called sidecar files) with projection info for an image / dataset.
GIS software like ArcGIS Pro and QGIS use these files to display images in the proper place and size.
Generate with:
Function options:
aux.xml
, wld
, or prj
)
Output:
With World files images will just “pop” into place (approximately):
If your images can’t be stitched, life is not over!
This function will crop each image, keeping the center part (least distorted)
Function options:
Example Output:
Not great, but…
Convert between JPG, TIF, and DNG without losing all the image metadata (EXIF info):
uas_dirs_find()
- find all directories with image filesThe need for data management tools and workflows increases as you: