From 4e6fbe6748f1836e1fc40e1f000fe57680eeaf02 Mon Sep 17 00:00:00 2001 From: othocaeS Date: Mon, 25 Jul 2016 17:44:27 -0400 Subject: [PATCH] debugging thor things: thor submissions can't handle UTF names --- scripts/analyze_lightcurves.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/analyze_lightcurves.sh b/scripts/analyze_lightcurves.sh index 7e38b17..3e4caae 100755 --- a/scripts/analyze_lightcurves.sh +++ b/scripts/analyze_lightcurves.sh @@ -113,11 +113,12 @@ do else if [[ $1 == "thor" ]] then - argsfile="thor/arguments/$echo_band.args" - submitscript="thor/${echo_band}.pbs" + echo_band_noUTF=$(echo $echo_band|sed 's@𝛌@@g'|sed 's@=@@g'|sed 's@Å@A@g') + argsfile="thor/arguments/$echo_band_noUTF.args" + submitscript="thor/${echo_band_noUTF}.pbs" cp tmp.psdlagargs $argsfile cat scripts/templates/thor_submit.pbs| - sed "s@%NAME%@'${echo_band} psdlag'@g"| + sed "s@%NAME%@psdlag_${echo_band_noUTF}@g"| sed "s@%ARGSFILE%@${argsfile}@g"| sed "s@%ROOTDIR%@$(pwd)@g"| sed "s@%OUTPUTFILE%@${outputfile}@g" > $submitscript