Detect increasing or decreasing depth

조회 수: 3 (최근 30일)
Harvey Cairns
Harvey Cairns 2022년 6월 28일
답변: Star Strider 2022년 6월 28일
I have a timetable of oceanographic data collected by a CTD. The time series contains data on the instrument depth, water temperature and salinity. The instrument is on a fixed mooring, so an increasing value for depth means that the tide is rising, and vice versa, however there is also noise in this data set from waves.
My aim is to be able to select data (temperature and salinity) from when the tide is either rising or falling, to determine wether the water is warmer on the ebb tide than flood tide.
Can someone point me in the right direction for how I'd begin to go about this?
Thanks in advance!

채택된 답변

Star Strider
Star Strider 2022년 6월 28일
Assuming the data are contaminated with broadband (rather than band-limited) noise, the different columns are observations and each row corresponds to a monotonically-increasing time value, use the sgolayfilt function to elimiinate as much noise as possible (this will require experimentation, I usually use an order 3 polynomial and then vary the framelen value until I get the desired result) and then use the gradient function to determine the direction of change, for example:
dPdt = gradient(Pressure) ./ gradient(time);
Use the sign of ‘dPdt’ to guide the rest of the analysis.
.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Oceanography and Hydrology에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by