Step 5: Incorporated survey information into the images' metadata.
The updated standard USGS tags were incorporated into the metadata embedded in the header of each image using several commands. As previously mentioned, the MicaSense camera recorded the GPS date and time from the GPS connected to the camera to the Exif CreateDate tag. First, the Exif CreateDate tag was copied to the Exif GPSDateStamp and GPSTimeStamp tags for the 2019 images using the following ExifTool (version 11.86) command:
exiftool -P "-GPSTimeStamp<CreateDate" "-GPSDateStamp<CreateDate" -overwrite_original *.tif
Next, the following ExifTool command was run to incorporate standard USGS tags and survey information into the metadata embedded in the headers of the 2017 images:
exiftool -P "-XMP:PreservedFileName<Filename" -IPTC:Credit="U.S. Geological Survey" -IPTC:Contact="WHSC_data_contact@usgs.gov" -EXIF:Copyright="Public Domain" -XMP:UsageTerms="Unless otherwise stated, all data, metadata and related materials are considered to satisfy the quality standards relative to the purpose for which the data were collected. Although these data and associated metadata have been reviewed for accuracy and completeness and approved for release by the U.S. Geological Survey (USGS), no warranty expressed or implied is made regarding the display or utility of the data for other purposes, nor on all computer systems, nor shall the act of distribution constitute any such warranty." -EXIF:ImageDescription="
https://cmgds.marine.usgs.gov/fan_info.php?fan=2017-057-FA; One band of a multispectral image from a low-altitude aerial survey in Plum Island, Massachusetts, from USGS field activity 2017-057-FA" -XMP:AttributionURL="
https://doi.org/10.5066/P9PP35F4" -EXIF:GPSAreaInformation="position derived from UAS GPS" -EXIF:GPSMapDatum="EPSG:7660 (WGS 84 [G1150])" -EXIF:Artist="Woods Hole Coastal and Marine Science Center (WHCMSC) Aerial Imaging and Mapping (AIM) Group" -overwrite_original -ext tif .
Then, the following ExifTool command was run to incorporate standard USGS tags and survey information into the metadata embedded in the headers of the 2019 images:
exiftool -P "-XMP:PreservedFileName<Filename" -IPTC:Credit="U.S. Geological Survey" -IPTC:Contact="WHSC_data_contact@usgs.gov" -EXIF:Copyright="Public Domain" -XMP:UsageTerms="Unless otherwise stated, all data, metadata and related materials are considered to satisfy the quality standards relative to the purpose for which the data were collected. Although these data and associated metadata have been reviewed for accuracy and completeness and approved for release by the U.S. Geological Survey (USGS), no warranty expressed or implied is made regarding the display or utility of the data for other purposes, nor on all computer systems, nor shall the act of distribution constitute any such warranty." -EXIF:ImageDescription="
https://cmgds.marine.usgs.gov/fan_info.php?fan=2019-009-FA; One band of a multispectral image from a low-altitude aerial survey in Plum Island, Massachusetts, from USGS field activity 2019-009-FA" -XMP:AttributionURL="
https://doi.org/10.5066/P9PP35F4" -EXIF:GPSAreaInformation="position derived from UAS GPS" -EXIF:GPSMapDatum="EPSG:7660 (WGS 84 [G1150])" -EXIF:Artist="Woods Hole Coastal and Marine Science Center (WHCMSC) Aerial Imaging and Mapping (AIM) Group" -overwrite_original -ext tif .
Finally, the following ExifTool command was run on both the 2017 and 2019 images to duplicate values from Exif and IPTC metadata tags to XMP tags because various software packages read different tags:
exiftool -P "-XMP-photoshop:Credit<IPTC:Credit" "-XMP-iptcCore:CreatorWorkEmail<IPTC:Contact" "-XMP-dc:Rights<EXIF:Copyright" "-XMP-dc:Description<EXIF:ImageDescription" "-XMP-exif:all<GPS:all" "-XMP-exif:GPSLatitude<Composite:GPSLatitude" "-XMP-exif:GPSLongitude<Composite:GPSLongitude" "-XMP-exif:GPSDateTime<Composite:GPSDateTime" "-XMP-photoshop:DateCreated<EXIF:DateTimeOriginal" "-XMP-xmp:ModifyDate<EXIF:ModifyDate" "-XMP-dc:Creator<EXIF:Artist" "-XMP-tiff:Make<EXIF:Make" "-XMP-tiff:Model<EXIF:Model" -overwrite_original .
The following metadata tags were populated in the image headers using the above ExifTool commands. Please note that only a subset of these tags may be accessed depending on the software used to view the image metadata.
Exif tags and the information used to populate these tags:
Artist: Woods Hole Coastal and Marine Science Center (WHCMSC) Aerial Imaging and Mapping (AIM) Group
Copyright: Public Domain
GPSAreaInformation: position derived from UAS GPS
GPSDateStamp (2019 images): duplicated from Exif CreateDate
GPSMapDatum: EPSG:7660 (WGS 84 [G1150])
GPSTimeStamp (2019 images): duplicated from Exif CreateDate
ImageDescription (2017 images):
https://cmgds.marine.usgs.gov/fan_info.php?fan=2017-057-FA; One band of a multispectral image from a low-altitude aerial survey in Plum Island, Massachusetts, from USGS field activity 2017-057-FA
ImageDescription (2019 images):
https://cmgds.marine.usgs.gov/fan_info.php?fan=2019-009-FA; One band of a multispectral image from a low-altitude aerial survey in Plum Island, Massachusetts, from USGS field activity 2019-009-FA
IPTC tags and the information used to populate these tags:
Contact: WHSC_data_contact@usgs.gov
Credit: U.S. Geological Survey
XMP tags and the information used to populate these tags:
AttributionURL:
https://doi.org/10.5066/P9PP35F4
Creator: duplicated from Exif Artist
CreatorWorkEmail: duplicated from IPTC Contact
Credit: duplicated from IPTC Credit
DateCreated: duplicated from Exif DateTimeOriginal
Description: duplicated from Exif ImageDescription
GPSAreaInformation: duplicated from Exif GPSAreaInformation by copying all the Exif GPS tags to the same-named tags in XMP (-XMP-exif:all<GPS:all)
GPSDateTime: duplicated using the composite of Exif GPSDateStamp and Exif GPSTimeStamp
GPSLatitude: duplicated using the composite of Exif GPSLatitude and Exif GPSLatitudeRef
GPSLongitude: duplicated using the composite of Exif GPSLongitude and Exif GPSLongitudeRef
GPSMapDatum: duplicated from Exif GPSMapDatum by copying all the Exif GPS tags to the same-named tags in XMP (-XMP-exif:all<GPS:all)
Make: duplicated from Exif Make
Model: duplicated from Exif Model
ModifyDate: duplicated from Exif ModifyDate
PreservedFileName: original image file name, which is unique for each image
Rights: duplicated from Exif Copyright
UsageTerms: Unless otherwise stated, all data, metadata and related materials are considered to satisfy the quality standards relative to the purpose for which the data were collected. Although these data and associated metadata have been reviewed for accuracy and completeness and approved for release by the U.S. Geological Survey (USGS), no warranty expressed or implied is made regarding the display or utility of the data for other purposes, nor on all computer systems, nor shall the act of distribution constitute any such warranty.
To extract the geotagging and survey information (except for the duplicated tags) from the image metadata using ExifTool, the following command can be used (tested with ExifTool version 11.86):
exiftool -csv -filename -EXIF:GPSTimeStamp -EXIF:GPSDateStamp -GPSLatitude -GPSLongitude -n -IPTC:Credit -IPTC:Contact -EXIF:Copyright -XMP:UsageTerms -EXIF:ImageDescription -XMP:AttributionURL -EXIF:GPSAreaInformation -EXIF:GPSMapDatum -EXIF:Artist -ext tif . > out.csv
The "-csv" option writes the information to a CSV file. The "-n" option formats the latitude and longitude as signed decimal degrees. Please note that the above command was tested on macOS; Windows users may need to use "exiftool.exe" instead of "exiftool."