head	1.4;
access;
symbols
	OctansJune5:1.3
	Ver3-0:1.3
	Ver2-4:1.3
	Ver2-3-2:1.3
	Ver2-3:1.3
	Ver2-2:1.3;
locks; strict;
comment	@# @;


1.4
date	2001.08.06.17.22.42;	author rob;	state Exp;
branches;
next	1.3;

1.3
date	2000.06.14.22.27.32;	author rob;	state Exp;
branches;
next	1.2;

1.2
date	2000.06.14.01.56.16;	author rob;	state Exp;
branches;
next	1.1;

1.1
date	2000.06.13.22.38.15;	author rob;	state Exp;
branches;
next	;


desc
@@


1.4
log
@Extract additional columns from the Winfrog output.
@
text
@#
# PURPOSE: Create Matlab-readable file of the avu location and time-stamps from
#	   the Winfrog log file.
# AUTHOR:  Rob McEwen
# DATE:    00/6/8
#
# NOTES:1) See page B-7 of the Winfrog User's Guide for the format description.

 if [ $1 ]
 then
   echo "Converting USBL data ..."
 else
   echo "cvtwfq: Please furnish a file name."
   exit -1
 fi

 echo "usbl = [ ... " > dataUsbl.m
 cat $1 | cut -f 6,7,11,12,13,26,27,28,29,30,31,32,33 -d "," >> dataUsbl.m
 echo " ];" >> dataUsbl.m

 cat $1 | cut -f 2 -d "," | cut -f 2 -d " " > temp.txt
#
# This gnarly sed command inserts a ' at the start and end of each line.
#
 cat temp.txt | sed 's/^/'\''/' | sed 's/$/'\''/' > temp1.txt


 echo "usblTime = [ ... " > dataUsblTime.m
 cat temp1.txt >> dataUsblTime.m
 echo " ];" >> dataUsblTime.m

 rm temp.txt
 rm temp1.txt


@


1.3
log
@Added file name default.
@
text
@d7 1
d18 1
a18 1
 cat $1 | cut -f 6,7,11,26,27 -d "," >> dataUsbl.m
@


1.2
log
@Now processes Winfrog data, and ship data from Winfrog GPS.
@
text
@d8 8
a15 1
 echo "Converting USBL data ..."
@


1.1
log
@Process Winfrog data.  Create matlab-readable files with .m suffix.
@
text
@d10 1
a10 1
 cat $1 | cut -f 26,27 -d "," >> dataUsbl.m
@
