Populating image headers- Credit, contact information, copyright, usage terms, image descriptions, attribution url, metadata link, and georeferencing information were added to the exchangeable image file format (EXIF) header of each image using Phil Harvey’s ExifTool (version 12.44). The images were grouped by image type (core logs and photographs) into separate folders: 2023-309-FA_CoreLogs (11 images), 2023-309-FA_CorePhotos (52 images). Grain-size plots are in the folder: 2023-309-FA_GrainSize (2 images). All information in the scripts were the same among all images, aside from the EXIF:ImageDescription, EXIF:DateTimeOriginal, EXIF:GPSLatitude and EXIF:GPSLongtitude information, as that information varies for each core. A separate script containing that header information was run to populate those headers (see the third script). The core logs and photographs are published as JPGs. Image header information was also populated for 2023-309-FA_GrainSizeDistributions.jpg in 2023-309-FA_GrainSizeData.zip. However, since this image details grain-size distributions for all collected cores, the third script was not used, along with removing EXIF:GPSMapDatum and EXIF:GPSAreaInformation in the second script.
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 on all images in a folder to populate the first set of headers.
exiftool -IPTC:Credit="U.S. Geological Survey" -IPTC:Contact="
[email protected]" -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." -XMP:AttributionURL="
https://doi.org/10.5066/P1AFJDNE" -XMP:Event="2023-309-FA" -EXIF:GPSAreaInformation="Location of core collection site, GPS coordinates are in NAD83" -XMP:ExternalMetadataLink="
https://www1.usgs.gov/pir/api/identifiers/USGS:4ee2764f-c629-4176-ac61-e064ed2fcede" -EXIF:GPSMapDatum="EPSG:6318 NAD83 (2011)" *.JPG
Third, the following command was run on each image in the folder to populate the unique image headers for each core. This command called on a .csv file containing the File name, GPS Latitude, and GPS Longitude of each core, called “TYND_core_photos_GPS_info.csv ” as well as a text file that contained header tags, called “in.args-tyndall_core_photos.txt”.
The command run to populate the Latitude and Longitude information was:
exiftool -@ in.args-tyndall_core_photos.txt -csv=TYND_core_photos_GPS_info.csv *.jpg
Fourth, 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<GPS:all" "-XMP-photoshop:DateCreated<EXIF:DateTimeOriginal" "-EXIF:GPSDateStamp<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 a.jpg, where 'a' is replaced with the filename. Example: TYND-VC03_0-90_FullStitch.jpg