Description Usage Arguments Value References Examples

Bottom-mounted pressure transducers suffer from pressure signal attenuation when attempting to estimate surface wave heights. This function corrected water surface height time series based on the depth of the water column and height of the sensor above the bottom.

1 |

`pt` |
A vector of water surface heights (units of meters usually). |

`Fs` |
Sampling frequency (units of Hz). Normally 4Hz for an OWHL logger. |

`zpt` |
Height of the pressure sensor above the seabed (units of meters). |

`M` |
Length of time series segments that will be used in the detrending and attenuation correction operations. 512 samples is the default, should be an even number. |

`CorrLim` |
[min max] frequency for attenuation correction (Hz, optional, default [0.05 0.33]). |

A vector of the depth-corrected surface heights (units of meters usually). Any original trend in the input data (such as tide change) is present in the output data. The returned surface height fluctuations will typically be more extreme than the raw input surface heights.

Original MATLAB function by Urs Neumeier http://neumeier.perso.ch/matlab/waves.html Modified from the Pcorr3.m function written by T. Mason, SOC, January 1997

Each segment of pt will be linearly detrended, corrected for attenuation, and the linear trend will be added back to the returned data.

1 2 3 4 5 6 7 | ```
data(wavedata)
corrected = prCorr(wavedata$SurfaceHeightRaw.m, Fs = 4, zpt = 0.1)
# Plot the results
plot(x = wavedata$DateTime, y = corrected, type = 'l',
ylab='Surface Height, m', xlab = 'Time')
lines(x = wavedata$DateTime, y = wavedata$SurfaceHeightRaw.m, col = 'red')
legend('topleft',legend=c('Corrected','Raw'),col=c('black','red'),lwd = 2)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.