beamUnattenuateAdp(x, count2db=c(0.45, 0.45, 0.45, 0.45), debug=getOption("oceDebug"))
"adp"
class
"adp"
.count2db
. Then the signals are range
corrected by adding the term $20\log10(r)$, where
$r$ is the distance from the sensor head to the water from
which scattering is occuring. $r$ is given by
x$data$distance
.read.adp
for other functions that relate to objects
of class "adp"
.library(oce)
data(adp)
plot(adp, which=5) # beam 1 echo intensity
adp.att <- beamUnattenuateAdp(adp)
plot(adp.att, which=5) # beam 1 echo intensity
## Profiles
par(mar=c(4, 4, 1, 1))
plot(apply(adp$data$a,2,mean),adp$data$distance,type='l',xlim=c(0,256))
lines(apply(adp.att$data$a,2,mean),adp$data$distance,type='l',col='red')
legend("topright",lwd=1,col=c("black","red"),legend=c("original","attenuated"))
## Image
plot(adp.att, which="amplitude",col=oceColorsJet(100))
Run the code above in your browser using DataLab