A python script (writeexif_2_readfile_11_24_15.py executed with IDLE version 2.7.3) was then run that incorporated the information from 2017-043-FA_image_locations.csv, along with additional information, into the appropriate locations in the EXIF header of each GoPro grab image at each station. Although the two images from each station aren't from exactly the same place, the same information for that station was populated in each photo. The PYTHON script uses ExifTool (version 9.4.6.0) to write the information to the image headers of the full-resolution images. The following tags were populated in the JPEG image headers. Information is duplicated in some tags. This was done because different software packages access different tags.
GPS tags: The values populated are unique for each image and based on the information exported from the photo locations shapefile.
GPSLatitudeRef
GPSLatitude
GPSLongitudeRef
GPSLongitude
GPSTimeStamp
GSPDateStamp
JPEG tags: The tag is listed along with the information used to populate it.
comment: Photo of grab sample in sampler from a hand-held Nikon 7100 digital camera aboard the R/V Auk during survey 2017-043-FA (
https://cmgds.marine.usgs.gov/fan_info.php?fan=2017-043-FA ).
EXIF tags: The tag is listed along with the information used to populate it - which is the same for every image.
ImageDescription: Photo of grab sample in sampler from a sample on Stellwagen Bank, MA from survey 2017-043-FA
Artist: Page C. Valentine
Copyright: Public Domain - please credit the U.S. Geological Survey
IPTC tags: The tag is listed along with the information used to populate it - which is the same for every image.
Credit: U.S. Geological Survey
Contact: WHSC_data_contact@usgs.gov
Keywords: Stellwagen Bank, Massachusetts, 2017-043-FA, SEABOSS, sea floor, USGS, ground-truth
CopyrightNotice: Public Domain - please credit U.S. Geological Survey
Caption-Abstract: Photo of grab sample in sampler from a sample on Stellwagen Bank, MA from survey 2017-043-FA
XMP tags: The tag is listed along with the information used to populate it - which is the same for every image.
Caption: Photo of grab sample in sampler from a sample on Stellwagen Bank, MA from survey 2017-043-FA
To extract the information from the image headers using ExifTool, the following command can be used (tested with ExifTool version 9.4.6.0):
exiftool.exe -csv -f -filename -GPSTimeStamp -GPSLongitude -GPSLatitude -n -Artist -Credit -comment -keywords -Caption -Copyright -CopyrightNotice -Caption-Abstract -ImageDescription *.jpg > out.csv
The -csv flag writes the information out in a comma-delimited format. The -n option formats the latitude and longitude as signed decimal degrees.