#!/bin/sh
set -e

. ./include.sh

#rm -f tracks_05W_PEIPAH_2014041000.eps.bufr4 tracks_05W_PEIPAH_2014041000.eps.bufr

echo "${tools_dir}/tc_tracks_eps -i ${tests_dir}/tc_tracks/tracks_05W_PEIPAH_2014041000.fm -o ${tests_bin_dir}/tracks_05W_PEIPAH_2014041000.eps.bufr"

${tools_dir}/tc_tracks_eps -i ${tests_dir}/tc_tracks/tracks_05W_PEIPAH_2014041000.fm -o ${tests_bin_dir}/tracks_05W_PEIPAH_2014041000.eps.bufr
${tools_dir}/tc_tracks_eps -4 -i ${tests_dir}/tc_tracks/tracks_05W_PEIPAH_2014041000.fm -o ${tests_bin_dir}/tracks_05W_PEIPAH_2014041000.eps.bufr4
cmp ${tests_bin_dir}/tracks_05W_PEIPAH_2014041000.eps.bufr4 ${tests_dir}/tc_tracks/tracks_05W_PEIPAH_2014041000.eps.bufr4
cmp ${tests_bin_dir}/tracks_05W_PEIPAH_2014041000.eps.bufr ${tests_dir}/tc_tracks/tracks_05W_PEIPAH_2014041000.eps.bufr


${tools_dir}/tc_tracks_det -i ${tests_dir}/tc_tracks/tracks_15U_ITA_2014041012.fm -o ${tests_bin_dir}/tracks_15U_ITA_2014041012.det.bufr
${tools_dir}/tc_tracks_det -4 -i ${tests_dir}/tc_tracks/tracks_15U_ITA_2014041012.fm -o ${tests_bin_dir}/tracks_15U_ITA_2014041012.det.bufr4

cmp ${tests_bin_dir}/tracks_15U_ITA_2014041012.det.bufr ${tests_dir}/tc_tracks/tracks_15U_ITA_2014041012.det.bufr
cmp ${tests_bin_dir}/tracks_15U_ITA_2014041012.det.bufr4 ${tests_dir}/tc_tracks/tracks_15U_ITA_2014041012.det.bufr4
