A python script (writeexif_2_readfile_7_25_19.py executed with IDLE version 2.7.14) was then run that incorporated the information from 2017-044-FA_grabimage_locations.csv, along with additional information about the field activity, into the appropriate locations in the EXIF header of each grab image at each station. The PYTHON script uses ExifTool (version 11.54) 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-044-FA (
https://cmgds.marine.usgs.gov/fan_info.php?fan=2017-044-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-044-FA
Artist: Page C. Valentine
Copyright: Public Domain - please credit the U.S. Geological Survey
UserComment: Image part of USGS data release https://doi.org/10.5066/P9IL0LLO
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-044-FA, SEABOSS, sea floor, USGS, ground-truth, https://doi.org/10.5066/P9IL0LLO
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-044-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-044-FA
To extract the information from the image headers using ExifTool, the following command can be used (tested with ExifTool version 11.54):
exiftool.exe -csv -f -filename -GPSTimeStamp -GPSLongitude -GPSLatitude -n -Artist -Credit -comment -keywords -Caption -Copyright -CopyrightNotice -Caption-Abstract -ImageDescription -UserComment *.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.