Using gpt's BandMaths operator

I’m trying to create a new band, using gpt’s bandMaths operator, for an AATSR source product but I keep getting the same error (outlined below). I’m not sure whether its a bug or if I havent got my code quite right … any help would be greatly appreciated. Many thanks.

echo "

1.0

BandMaths

\${source}




newBand
1/btemp_nadir_1200
float32




">makeBandMaths.xml

for file in $(ls ATSN1); do
echo “Applying gpt to file:” $file
~/snap/bin/gpt makeBandMaths.xml -Ssource=$file -t $file.nc
done

Error generated:
error.txt (4.2 KB)

Sorry, I have just noticed that i have misspelled version! Lets see if it works now …