psdlag-agn/scripts/analyze_lightcurves.sh

26 lines
1.0 KiB
Bash
Raw Normal View History

#!/usr/local/bin/bash
2016-07-20 01:54:37 +00:00
for curvefile in data/STORM_III/lightcurves/Δt0.1/*
do
echo Running psdlag for $curvefile.
2016-07-11 21:14:36 +00:00
newfilename="analyses/$(basename $curvefile|sed 's@\(.*\)\.lc@\1@')≻HST1367_$(basename $(dirname $curvefile))"
echo "2" > tmp.psdlagargs
2016-07-20 01:54:37 +00:00
echo "data/STORM_III/lightcurves/Δt0.1/HST1367.lc 0" >> tmp.psdlagargs
echo "$curvefile 0" >> tmp.psdlagargs
echo "8 0.005 0.019 0.0425 0.07 0.11 0.17 0.24 0.4 0.603" >> tmp.psdlagargs
2016-07-20 01:54:37 +00:00
# covariance matrix errors
2016-07-20 03:12:16 +00:00
echo "0" >> tmp.psdlagargs
2016-07-20 01:54:37 +00:00
# likelihood function errors
2016-07-20 03:12:16 +00:00
# echo "1" >> tmp.psdlagargs
2016-07-20 01:54:37 +00:00
# monte carlo errors
# echo "2" >> tmp.psdlagargs
echo ".9999 .9999 .9999 0.49 0.42 0.30 0.36 1.2 -0.60 -0.89 -0.72 2.39 -0.74 -1.5 -1 -3.1 -1.3 -2.3 -2 -1.9 -1.6 -2.6 -2 -1.3 -1.8 -2.6 -1.2 0 -2 -2.7 -1.3 0.63" >> tmp.psdlagargs
echo "0:0 0" >> tmp.psdlagargs
echo "0" >> tmp.psdlagargs
echo "0" >> tmp.psdlagargs
echo "100 50 50 mcmc.dat" >> tmp.psdlagargs
2016-07-20 03:12:16 +00:00
time bin/psdlag tmp.psdlagargs >> $newfilenam e
done