{ printf("$SDDPT,%0.1f,0.0*56\n",$1) }The program is run with the following command line:
awk -f awkfmtdepth L12F1_bathy.txt > L12F1.sddpt
BEGIN { FS = "," } { FS = "," if ($1=="$GPRMC") { print $0 } }This script was run with the command line:
awk -f awk_justgprmc2 L12F1.gps > L12F1.gprmcThe awk script used to extract the SDMTW data was awk_justsdmtw:
BEGIN { FS = "," } { FS = "," if ($1=="$SDMTW") { print $0 } }This script was run with the command line:
awk -f awk_justsdmtw L12F1.gps > L12F1.sdmtw
diff2 = depth_m + estdepth pos_est = estdepth * -1The equation for the pred_val attribute varied depending on the line of data.
for L24 the equation was pred_val = estdepth + 0.2 L25, pred_val = estdepth + 0.3 L26, pred_val = estdepth + 0.4 L27, pred_val = estdepth + 0.5 L28, pred_val - estdepth + 0.6Based on the other information in the file, the assumption was that the tide was rising.
L24F2 output to L24F2_bathy.txt L25F1 output to L25F1_bathy.txt L26F1 output to L26F1_bathy.txt L27F1_part1 output to L27F1_part1_bathy.txt L27F1_part2 output to L27F1_part2_bathy.txt L28F1 output to L28F1_bathy.txt
{ printf("$SDDPT,%0.1f,0.0*56\n",$1) }The program is run with the following command line: awk -f awkfmtdepth inputfile > outputfile
BEGIN { FS = "," } { FS = "," if ($1=="$GPRMC") { print $0 } }This script was run with the command line: awk -f awk_justgprmc2 inputfile > outputfile