psdlag-agn/scripts/prep_lcfiles.sh

11 lines
305 B
Bash
Raw Normal View History

#!/usr/local/bin/bash
2016-07-22 21:58:25 +00:00
timestep="0.1"
newdir="data/STORM_III/lightcurves/Δt${timestep}"
mkdir -p $newdir
2016-07-22 21:58:25 +00:00
for file in data/STORM_III/raw/separated/*
do
newfile=$(basename $file|sed 's@\(.*\)\.tab@\1.lc@')
scripts/heasoft_to_psdlag.pl < $file > ${newdir}/${newfile}
echo Processed $file
done