Populating image headers: Additional metadata were added to the exchangeable image file format (EXIF) header of each image using Phil Harvey’s ExifTool version 12.30 (Harvey, 2021). The image headers were populated individually for each of the seven core photos and seven core logs. The information in the scripts were the same among all images, aside from the EXIF:ImageDescription, EXIF:GPSLatitude, and EXIF:GPSLongtitude information, as that information varied for each core. The EXIF:ImageDescription and IPTC:Keywords information varies between the core photos and core logs as well. An example script for core photo MP3-E.jpg is provided below.
First, the following command was run on all images in a folder to preserve filenames:
exiftool -P "-XMP:PreservedFileName<Filename" *.JPG.
Second, the following command was run for core photo MP3-E.jpg:
exiftool -IPTC:Credit="U.S. Geological Survey" -IPTC:Contact="gs-g-spcmsc_data_inquiries@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/services/activity.php?fan=2024-330-FA; Photograph of core MP3-E collected at Midnight Pass, between Siesta Key and Casey Key, Florida, from USGS field activity 2024-330-FA." -XMP:AttributionURL="
https://doi.org/10.5066/P1CQ6QRR" -EXIF:GPSAreaInformation="Trimble SPS986 and Leica GS16 RTK (Real-time Kinematic), cm-accuracy" -XMP:ExternalMetadataLink="
https://www1.usgs.gov/pir/api/identifiers/USGS:cd72480c-1dc9-48b6-a150-955ed04d59ee" -EXIF:GPSMapDatum="EPSG:4326 (WGS 84)" -EXIF:Artist="Daniel Ciarletta (USGS) & Blake Smullen (Contractor to the USGS)" -EXIF:Make="Nikon" -EXIF:Model="D80" -EXIF:GPSLatitude="27.20765771" -EXIF:GPSLatitudeRef="N" -EXIF:GPSLongitudeRef="W" -EXIF:GPSLongitude="-82.5111425" -sep ";" -IPTC:Keywords="drilling and coring, unconsolidated deposits, field sampling" -overwrite_original -P MP3-E.jpg
Third, the following command run on all images in a folder to copy information into duplicate tags:
exiftool -P "-XMP-photoshop:Credit<IPTC:Credit" "-XMP-iptcCore:CreatorWorkEmail<IPTC:Contact" "-XMP-dc:Rights<EXIF:Copyright" "-XMP-dc:Description<EXIF:ImageDescription" "-XMP-exif:all" "-XMP-photoshop:DateCreated<EXIF:DateTimeOriginal" -overwrite_original *.JPG
To extract the information from the image headers using ExifTool, run the following command after connecting to the unzipped folder containing the images:
exiftool -n -csv *.jpg > allheaders.csv