#!/bin/bash

echo "Checking for L1 timing corrections..."
correction_file=${TMTOOLS_ROOT}/l1_time_corrections/l1_time_corrections.txt
probe=`cat probe`
datestring=`cat timestamp`

grep ^${probe} ${correction_file} > probe_corrections

cat probe_corrections | while read line; do adjust_l1_times ${datestring} $line ; done

echo "Done with L1 timing corrections"
