Commit 55308d7d authored by Karl Wette's avatar Karl Wette

testGCT_inject.sh: use 3-column instead of 4-column segment list format

- Refs #547
Original: cb4a0a5bd968e3e0841ca82e6d53275759478232
parent e37e4293
......@@ -106,14 +106,15 @@ iSeg=1
while [ $iSeg -le $Nsegments ]; do
t0=$tmpTime
t1=$(($t0 + $Tsegment))
TspanHours=`echo $Tsegment | awk '{printf "%.7f", $1 / 3600.0 }'`
## first and last segment will be single-IFO only
if [ $iSeg -eq 1 -o $iSeg -eq $Nsegments ]; then
## first and last segment will be single-IFO only
NSFT=`echo $Tsegment $Tsft | awk '{print int(1.0 * $1 / $2 + 0.5) }'`
else ## while all other segments are 2-IFO
else
## while all other segments are 2-IFO
NSFT=`echo $Tsegment $Tsft | awk '{print int(2.0 * $1 / $2 + 0.5) }'`
fi
echo "$t0 $t1 $TspanHours $NSFT" >> $segFile
echo "$t0 $t1 $NSFT" >> $segFile
segs[$iSeg]=$tmpTime # save seg's beginning for later use
echo "Segment: $iSeg of $Nsegments GPS start time: ${segs[$iSeg]}"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment