#!/bin/sh
# We assume that NIST SPHERE version 2.0 software is installed; in 
# particular that w_decode is on your path and can be used to 
# decompress the sampled data files.  

#set -x 

xwaves -s &
sleep 1

send_xwaves set first_y 100 wave_height 100 y_increment 120 \
	x_increment 0 scrollbar_height 10

files="205a0101.wv1 205a0101.wv2 205a0102.wv1 205a0102.wv2 \
	205a0103.wv1 205a0103.wv2"

for file in $files
do 
 if test ! -f $file.sd
 then
   echo "Decompressing $file to $file.sd..."
   w_decode -o short_10 $file $file.sd
 fi
 echo "Displaying $file.sd" 
 send_xwaves make file $file.sd
done

echo "Finished.  Don't forget to remove the uncompressed files (*.sd)." 

