Step 5: Geotagged the photos and incorporated survey information into the photos' metadata tags.
The following commands were used with ExifTool (version 11.86) to geotag the photos by populating the GPS tags and to incorporate additional survey information into the appropriate metadata tags of each JPEG image. Since the photos were acquired during two surveys and various time offsets were applied to each Julian day of surveying, different commands were run for each day's photos using slightly different tags. In the commands below, the "-geosync" value is equal to the time offset identified in a previous process step; it is the time difference in seconds that is added to the camera time before determining the photo's GPS time and location with a leading "+" or "-" added for positive or negative differences (negative if the camera clock was ahead of the GPS time). Survey information is duplicated in some tags because various software packages access different tags. Please note that depending on the software used to view the metadata tags, only a subset of these tags may be extracted. For more information about the ExifTool commands, see
https://exiftool.org/geotag.html and
https://exiftool.org/faq.html.
2016 photos from Julian day 123:
exiftool -api GeoMaxIntSecs=0 -api GeoMaxExtSecs=0 -P -m -geotag ./out_interp_2016Nantucket_sel.gpx -geosync=-22 '-geotime<${DateTimeOriginal}+00:00' -Artist="Laura L. Brothers" -Copyright="Public Domain - please credit U.S. Geological Survey" -ImageDescription="Photograph of the sea floor in Nantucket Sound, Massachusetts, from survey 2016-005-FA" -Caption-Abstract="Photograph of the sea floor in Nantucket Sound, Massachusetts, from survey 2016-005-FA" -Contact="WHSC_data_contact@usgs.gov" -CopyrightNotice="Public Domain - please credit U.S. Geological Survey" -Credit="U.S. Geological Survey" -sep ", " -keywords="Nantucket Sound, Massachusetts, 2016-005-FA, SEABOSS, sea floor, USGS" -comment="Photo from down-looking camera on the USGS SEABOSS deployed from the R/V Rafael during survey 2016-005-FA (
https://cmgds.marine.usgs.gov/fan_info.php?fan=2016-005-FA)." -Caption="Photograph of the sea floor in Nantucket Sound, Massachusetts, from survey 2016-005-FA" ./2016_originals/JD123*
2016 photos from Julian day 124:
exiftool -api GeoMaxIntSecs=0 -api GeoMaxExtSecs=0 -P -m -geotag ./out_interp_2016Nantucket_sel.gpx -geosync=-29 '-geotime<${DateTimeOriginal}+00:00' -Artist="Laura L. Brothers" -Copyright="Public Domain - please credit U.S. Geological Survey" -ImageDescription="Photograph of the sea floor in Nantucket Sound, Massachusetts, from survey 2016-005-FA" -Caption-Abstract="Photograph of the sea floor in Nantucket Sound, Massachusetts, from survey 2016-005-FA" -Contact="WHSC_data_contact@usgs.gov" -CopyrightNotice="Public Domain - please credit U.S. Geological Survey" -Credit="U.S. Geological Survey" -sep ", " -keywords="Nantucket Sound, Massachusetts, 2016-005-FA, SEABOSS, sea floor, USGS" -comment="Photo from down-looking camera on the USGS SEABOSS deployed from the R/V Rafael during survey 2016-005-FA (
https://cmgds.marine.usgs.gov/fan_info.php?fan=2016-005-FA)." -Caption="Photograph of the sea floor in Nantucket Sound, Massachusetts, from survey 2016-005-FA" ./2016_originals/JD124*
2016 photos from Julian day 128:
exiftool -api GeoMaxIntSecs=0 -api GeoMaxExtSecs=0 -P -m -geotag ./out_interp_2016Nantucket_sel.gpx -geosync=-46 '-geotime<${DateTimeOriginal}+00:00' -Artist="Laura L. Brothers" -Copyright="Public Domain - please credit U.S. Geological Survey" -ImageDescription="Photograph of the sea floor in Nantucket Sound, Massachusetts, from survey 2016-005-FA" -Caption-Abstract="Photograph of the sea floor in Nantucket Sound, Massachusetts, from survey 2016-005-FA" -Contact="WHSC_data_contact@usgs.gov" -CopyrightNotice="Public Domain - please credit U.S. Geological Survey" -Credit="U.S. Geological Survey" -sep ", " -keywords="Nantucket Sound, Massachusetts, 2016-005-FA, SEABOSS, sea floor, USGS" -comment="Photo from down-looking camera on the USGS SEABOSS deployed from the R/V Rafael during survey 2016-005-FA (
https://cmgds.marine.usgs.gov/fan_info.php?fan=2016-005-FA)." -Caption="Photograph of the sea floor in Nantucket Sound, Massachusetts, from survey 2016-005-FA" ./2016_originals/JD128*
2017 photos:
exiftool -api GeoMaxIntSecs=0 -api GeoMaxExtSecs=0 -P -m -geotag ./2017022FA_TiogaShip_nav_4secint_round6_interp.gpx -geosync=+92 '-geotime<${DateTimeOriginal}+00:00' -Artist="Laura L. Brothers" -Copyright="Public Domain - please credit U.S. Geological Survey" -ImageDescription="Photograph of the sea floor in Nantucket Sound, Massachusetts, from survey 2017-022-FA" -Caption-Abstract="Photograph of the sea floor in Nantucket Sound, Massachusetts, from survey 2017-022-FA" -Contact="WHSC_data_contact@usgs.gov" -CopyrightNotice="Public Domain - please credit U.S. Geological Survey" -Credit="U.S. Geological Survey" -sep ", " -keywords="Nantucket Sound, Massachusetts, 2017-022-FA, SEABOSS, sea floor, USGS" -comment="Photo from down-looking camera on the USGS SEABOSS deployed from the R/V Tioga during survey 2017-022-FA (
https://cmgds.marine.usgs.gov/fan_info.php?fan=2017-022-FA)." -Caption="Photograph of the sea floor in Nantucket Sound, Massachusetts, from survey 2017-022-FA" ./2017_originals
The following tags were populated in the JPEG image headers using the above ExifTool commands:
GPS tags (these values are unique for each photo and based on the matched-up location data):
GPSLatitudeRef
GPSLatitude
GPSLongitudeRef
GPSLongitude
GPSTimeStamp
GSPDateStamp
Exif tags and the information used to populate these tags:
Artist: Laura L. Brothers
Copyright: Public Domain - please credit U.S. Geological Survey
ImageDescription (2016 photos): Photograph of the sea floor in Nantucket Sound, Massachusetts, from survey 2016-005-FA
ImageDescription (2017 photos): Photograph of the sea floor in Nantucket Sound, Massachusetts, from survey 2017-022-FA
International Press Telecommunications Council (IPTC) tags and the information used to populate these tags:
Caption-Abstract (2016 photos): Photograph of the sea floor in Nantucket Sound, Massachusetts, from survey 2016-005-FA
Caption-Abstract (2017 photos): Photograph of the sea floor in Nantucket Sound, Massachusetts, from survey 2017-022-FA
Contact: WHSC_data_contact@usgs.gov
CopyrightNotice: Public Domain - please credit U.S. Geological Survey
Credit: U.S. Geological Survey
Keywords (2016 photos): Nantucket Sound, Massachusetts, 2016-005-FA, SEABOSS, sea floor, USGS
Keywords (2017 photos): Nantucket Sound, Massachusetts, 2017-022-FA, SEABOSS, sea floor, USGS
JPEG tag and the information used to populate this tag:
Comment (2016 photos): Photo from down-looking camera on the USGS SEABOSS deployed from the R/V Rafael during survey 2016-005-FA (
https://cmgds.marine.usgs.gov/fan_info.php?fan=2016-005-FA).
Comment (2017 photos): Photo from down-looking camera on the USGS SEABOSS deployed from the R/V Tioga during survey 2017-022-FA (
https://cmgds.marine.usgs.gov/fan_info.php?fan=2017-022-FA).
Extensible Metadata Platform (XMP) tag and the information used to populate this tag:
Caption (2016 photos): Photograph of the sea floor in Nantucket Sound, Massachusetts, from survey 2016-005-FA
Caption (2017 photos): Photograph of the sea floor in Nantucket Sound, Massachusetts, from survey 2017-022-FA
To extract the information from the photo metadata tags using ExifTool, the following command can be used (tested with ExifTool version 11.86):
exiftool -csv -f -filename -GPSTimeStamp -GPSDateStamp -GPSLatitude -GPSLongitude -c "%+.7f" -Artist -Copyright -ImageDescription -Caption-Abstract -Contact -CopyrightNotice -Credit -keywords -comment -Caption *.JPG > out.csv
The -csv option writes the information to a CSV file. The -c option formats the latitude and longitude as signed decimal degrees with seven decimal places. Please note that the above command was tested on macOS; Windows users may need to use "exiftool.exe" instead of "exiftool."