dankelley/oce — Issue #179: read.echosounder() cannot handle biosonics sample files
Author: dankelley
Created: 2011-11-29 15:55:58+00:00
State: open
Labels: bug, echosounder

For example:

d<-read.oce("src/R-kelley/oce-data/biosonics/from-biosonics/03-BottomStructure.dt4")
plot(d)

Error in imagep(x = x[["time"]], y = -rev(x[["depth"]]), ylab = "z [m]", :
image width (8668) does not match length of x (0)

> str(d)
Formal class 'echosounder' [package "oce"] with 3 slots
..@ metadata :List of 7
.. ..$ filename : chr "/Users/kelley/src/R-kelley/oce-data/biosonics/from-biosonics/03-BottomStructure.dt4"
.. ..$ channel : num 1
.. ..$ blankedSamples: int 117
.. ..$ soundSpeed : num 1491
.. ..$ samplingDeltat: num 2.4e-05
.. ..$ pingsInFile : int 1520
.. ..$ samplesPerPing: int 8668
..@ data :List of 6
.. ..$ timeLocation: POSIXct[1:380], format: "2004-08-30 14:54:56.72" "2004-08-30 14:54:58.72" "2004-08-30 14:55:00.72" "2004-08-30 14:55:02.72" ...
.. ..$ latitude : num [1:380] 42.9 42.9 42.9 42.9 42.9 ...
.. ..$ longitude : num [1:380] -122 -122 -122 -122 -122 ...
.. ..$ depth : num [1:8668] 2.11 2.13 2.15 2.16 2.18 ...
.. ..$ time :Classes 'POSIXct', 'POSIXt' atomic (0)
..- attr(*, "tzone")= chr "UTC"
.. ..$ amplitude : num [1:1520, 1:8668] 1 1 1 1 1 1 1 1 1 1 ...
..@ processingLog:List of 2
.. ..$ time : POSIXct[1:2], format: "2011-11-29 11:54:58.517" "2011-11-29 11:54:59.566"
.. ..$ value: chr [1:2] "create 'echosounder' object" "read.echosounder(\"/Users/kelley/src/R-kelley/oce-data/biosonics/from-biosonics/03-BottomStructure.dt4\", tz=\"UTC\", debug=0)"
>