#!/bin/sh

#single time pulser peak output from sunsort
#usage toff < to.raw > to.cal

#sets dummy gains = 1.0
#sets offsets to put pulser centroid in channel 1000

awk '\
     /^Peak/ {printf "%s ", substr($6, 4, 3);next} \
     /^No./  {printf "1.0 ";next}\
     /  1/   {printf "%.3f\n", -1000+substr($2, 1, 6)}'
