Step 5: Incorporated survey information into the photos' header metadata.
Additional survey information was incorporated into the metadata embedded in the header of each JPEG image. Images may have different metadata formats embedded in their headers, and the commands below incorporated survey information into the following three image metadata formats: Exchangeable image file format (Exif), International Press Telecommunications Council (IPTC), and Extensible Metadata Platform (XMP). The second command below duplicates values from Exif and IPTC metadata tags to XMP tags because various software packages read different tags. Please note that only a subset of these tags may be accessed depending on the software used to view the image metadata.
Command to incorporate survey information into the metadata embedded in the header of each JPEG image using ExifTool (version 12.00):
exiftool -P -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?fa=2021-005-FA - Lake bed photograph from the USGS mini-SEABOSS in Lake Superior, Keweenaw Peninsula, Michigan during survey 2021-005-FA" -XMP:AttributionURL="TBD" -EXIF:GPSAreaInformation="position post-processed with data from ship's navigation data" -EXIF:GPSMapDatum="EPSG:4326 (WGS 84)" -EXIF:Artist="WHCMSC Sea Floor Mapping Group" -overwrite_original *.JPG
Command to duplicate metadata from the Exif and IPTC formats to XMP using ExifTool:
exiftool -P -m "-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 *.JPG
The following metadata tags were populated in the JPEG image header using the above ExifTool commands:
Exif tags and the information used to populate these tags:
Artist: Woods Hole Coastal and Marine Science Center (WHCMSC) Sea Floor Mapping Group (SFMG)
Copyright: Public Domain
GPSAreaInformation: position post-processed with data from the ship's navigation system
GPSMapDatum: EPSG:4326 (WGS 84)
ImageDescription:
https://cmgds.marine.usgs.gov/fan_info.php?fa=2021-005-FA - Lake bed photograph from the USGS MiniSEABOSS in Lake Superior, Keweenaw Peninsula, Michigan during survey 2021-005-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/P9NJY125
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 12.00):
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 *.JPG > 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."