The bottom photo locations CSV file was reorganized to have fields for the filename, latitude, longitude, GPS date, and GPS time. A Python script (MCZM_writeexif_2_readfile.py) was run that incorporated the matched-up location data, along with additional survey information, into the appropriate tags in the Exif header of each JPEG image. The Python script uses ExifTool (version 10.17) to write the information to the image headers. Information is duplicated in some tags because various software packages access different tags. Please note that depending on the software used to view the Exif header tags, only a subset of these tags may be extracted. The following tags were populated in the JPEG image headers:
GPS tags (these values are unique for each image and based on the matched-up location data):
GPSLatitudeRef
GPSLatitude
GPSLongitudeRef
GPSLongitude
GPSTimeStamp
GSPDateStamp
JPEG tag and the information used to populate this tag, which is the same for every image:
Comment: Photo from down-looking camera on the USGS SEABOSS deployed from the R/V Rafael during survey 2016-037-FA (
https://cmgds.marine.usgs.gov/fan_info.php?fan=2016-037-FA).
Exif tags and the information used to populate these tags, which is the same for every image:
ImageDescription: Photograph of the sea floor offshore of Town Neck Beach, Sandwich, Massachusetts, from survey 2016-037-FA
Artist: Seth D. Ackerman
Copyright: Public Domain - please credit U.S. Geological Survey
International Press Telecommunications Council (IPTC) tags and the information used to populate these tags, which is the same for every image:
Credit: U.S. Geological Survey
Contact: WHSC_data_contact@usgs.gov
Keywords: Town Neck Beach, Sandwich, Massachusetts, 2016-037-FA, SEABOSS, sea floor, USGS
CopyrightNotice: Public Domain - please credit U.S. Geological Survey
Caption-Abstract: Photograph of the sea floor offshore of Town Neck Beach, Sandwich, Massachusetts, from survey 2016-037-FA
Extensible Metadata Platform (XMP) tag and the information used to populate this tag, which is the same for every image:
Caption: Photograph of the sea floor offshore of Town Neck Beach, Sandwich, Massachusetts, from survey 2016-037-FA
To extract the information from the image headers using ExifTool, the following command can be used (tested with ExifTool version 10.17):
exiftool -csv -f -filename -GPSTimeStamp -GPSDateStamp -GPSLongitude -GPSLatitude -n -Artist -Credit -comment -keywords -Caption -Copyright -CopyrightNotice -Caption-Abstract -ImageDescription *.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.