#! /bin/sh echo "Bandpass Filter Test" indata=ozdata.25.sw rm -f tmp* tpow=2.0 #------------------------------------------------ # Show the original Shotplot and Spectrum first.. #------------------------------------------------ sugain <$indata tpow=$tpow >tmp0 suxwigb /dev/tty read choice1 case $choice1 in [sS]) cp tmp0 tmp1 echo "-> Using original data";; [aA]) cp tmp2 tmp1 echo "-> Using filtered data";; esac else cp tmp0 tmp1 fi echo "Select a filterband [Hz]:" echo "Input: a,b,c,d - a:=lowcut b:=lowpass" echo " c:=highpass d:=highcut" >/dev/tty read band sufilter tmp2 #------------------------------------------------ # Plot the filtered data... #------------------------------------------------ suxwigb /dev/tty read selection case $selection in 1) clear ok=false;; 2) pause exit ok=true;; esac done rm -f tmp* exit