psdlag-agn/scripts/prep_lcfiles.sh

12 lines
304 B
Bash
Raw Permalink Normal View History

2016-07-25 21:11:38 +00:00
#!/usr/bin/env 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