A bash shell script, run under CYGWIN version 1.5.1, was used to incorporate the imagename prefix into the title of the EarthImager resistivity JPEG images. The shell script uses the convert command which is part of the ImageMagick (v. 6.4) software package. The script is as follows:
#!/bin/bash
files=`ls *.jpg | cut -d. -f1`
for file in $files
do
if [[ $file == *Long* ]];
then
convert -gravity North -font Arial -pointsize 20 -annotate -120+0 $file $file.jpg added_name3/$file.jpg
elif [[ $file == *Short* ]];
then
convert -gravity North -font Arial -pointsize 24 -annotate -50+0 $file $file.jpg added_name3/$file.jpg
else convert -gravity North -font Arial -pointsize 24 -annotate -50+0 $file $file.jpg added_name3/$file.jpg
fi
done