Skip to content

Commit d0fc139

Browse files
committed
Added the extraction of transducer info from FM calibration files.
1 parent b46737e commit d0fc139

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

R/cal.R

+4-3
Original file line numberDiff line numberDiff line change
@@ -557,15 +557,16 @@ extract_cal_fm <- function(filename, vessel.name = NA_character_, survey.name =
557557

558558
}
559559

560-
# create a data frame for calibration results
561-
# create a cal_results.txt table, to hold summary data about transducer calibrations from cal/LOBE files
560+
# create a tibble for calibration results
562561
cal.res <- tibble::tibble(freq = txdr.freq, gain = bm.txdr.gain,
563562
sa.corr = bm.sa.corr, ba.athw = bm.athw.ba,
564563
ba.alon = bm.alon.ba, oa.athw = bm.athw.oa,
565564
oa.alon = bm.alon.oa)
566565

566+
cal.info <- tibble::tibble(txdr.type = txdr.type, txdr.sn = txdr.sn)
567+
567568
# Return calibration information as a list of tibbles
568-
list(cal.res = cal.res)
569+
list(cal.res = cal.res, cal.info = cal.info)
569570
}
570571

571572
#' Extract calibration results from Echoview calibration supplement (.ecs) files.

0 commit comments

Comments
 (0)