Introduction

The word “tides” is the term used to define the response of the ocean to the periodic fluctuations of the gravitational attraction of the moon and the sun. This response is in the form of long waves that are generated throughout the ocean. They propagate from place to place, are reflected, refracted, and dissipated just as other long waves. Like the open oceans, lakes are also affected by tides, and the solid Earth crust is affected by the same gravitational force of the sun and the moon. Moreover, other factors such as the coastline shape hydrographic conditions can play an essential role in the tidal range, the difference tidal range, and the duration and occurrence time of the tides. As the tides rise and fall, it produces flood and ebb currents, respectively.

Gravity is the main force that creates tides. Tides are the results of the gravitational force of the moon and the sun as explained by Isaac Newton in 1978. Newton’s universal gravitation law states that the gravitational attraction between two objects has a directly proportional to the corresponding masses, and inversely proportional to the square of the distance between the bodies (Sumich and Morrissey 2004). The gravitational attraction force F between any two masses, m 1 and m 2 apart with distance d is given by:

$$F=\frac{{G{m_1}{m_2}}}{{{d^2}}},$$
(1)

where G is constant depends upon the units employed.

Therefore, the gravitational attraction force between two objects depends mainly on the mass of the objects and the distance between them. So, tidal forces are the result of the gravitational force. In case of the objects on the Earth’s surface, the distance between the two objects is more important than their masses. If we consider the Earth-moon system, the mass of the Earth and the moon is m e and m m respectively. The radius of the Earth is r and the distance between the center of the Earth and the center of the moon is d, then from Eq. (1) the force towards the moon can be expressed as:

$$F=G\frac{{{m_e}{m_m}}}{{{{(d - r)}^2}}}.$$
(2)

But the force required for the moon rotation about the Earth can be given as follows:

$$F=G\frac{{{m_e}{m_m}}}{{{r^2}}}.$$
(3)

So, the tide-producing force \({F_P}\) at point P is the different between these two forces, then:

$${F_P}=G{m_e}{m_m}\left( {\frac{1}{{{{(d - r)}^2}}} - \frac{1}{{{r^2}}}} \right)=\frac{{G{m_e}{m_m}}}{{{r^2}}}\left( {\frac{1}{{{{(1 - r/d)}^2}}} - 1} \right).$$
(4)

The term \(1/{(1 - r/d)^2}\) can be expanded using the following mathematical approximation, for small values of x: \(\left( {\frac{1}{{{{(1 - x)}^2}}}} \right)=1+2x\). so, the tide force at point P can be written as follows:

$${F_P}=\frac{{2G{m_e}{m_m}}}{{{d^3}}}.$$
(5)

From Eq. (5) we can notice that there is inversely relationship between the tidal forces and the distance between objects. If we consider this rule for the relationship between the Earth, the sun, and the moon, the sun is larger than the moon by about 27 million times. If we consider the mass, the attraction force between the sun and the Earth is greater than the attraction force between the Earth and the moon by about 178 times. However, because the sun is 390 times away from the Earth than the moon. Thus, its tidal attraction force is reduced by 3903, or less than the attraction force of the moon by about 59 million times. Because of such situation, the sun’s attraction force is about 178/390 = 0.46 times that of the moon (Forrester 1983).

Spectral analysis

The idea of spectral analysis is to transform the overall spectrum of the time series into the summation of the spectrum of many sine and cosine waves. Every periodic wave has its specific contribution in the overall spectrum. There are two common approaches of spectral analysis. The first is the classical Fourier methods and the second is the Least Squares Spectral Analysis (LSSA). The LSSA method has been investigated and tested by Vaníček 1969 and 1971. Taylor et al. (1972) introduced a verification for Vaníček method. The statistical aspects of spectral analysis of unevently data is introduced by Scargle (1982), Lomb (1976), and Press et al. (1992). Moreover, the stochastic significance of LSSA peaks is investigated by Pagiatakis (1999) and its applications are introduced in Pagiatakis et al. (1985).

Least-squares harmonic analysis can be used to model water level data by estimating the tidal constituents embedded in the water level measurements as follows (El-Diasty and Al-Harbi 2015; Forrester 1983; Hou and Vanicek 1994):

$$y({t_i})={a_0}+\sum\limits_{j=1}^m {{a_j}\,\cos \,\,\left( {{\omega _j}t} \right)\,+\,{b_j}\,\sin \,\,\left( {{\omega _j}t} \right)} \,,$$
(6)

where, \(y({t_i})\) is the series of measured water levels (i = 1, 2, …, n); \({a_0}\) is the constant term, m is the number of expected constituents; \({a_j},\,{\text{and}}\,{b_j}\) are the cosine and sine parameters, respectively; \({\omega _j}\) is the frequency of the expected constituent. Equation 6 can be written in matrix notation as follows:

$$Y=AX,$$
(7)

where \(Y={\left[ {y({t_1}),y({t_2}), \ldots ,y({t_n})} \right]^T}\) is the observation vector; \(X={\left[ {{a_0},{a_1},{b_1}, \ldots ,{a_m},{b_m}} \right]^T}\) is the vector of the unknown parameters; and the design matrix A can be written as:

$$A=\left[ {\begin{array}{*{20}{c}} 1&{\cos ({\omega _1}{t_1})}& \ldots &{\sin ({\omega _n}{t_1})} \\ 1&{\cos ({\omega _1}{t_2})}& \ldots &{\sin ({\omega _m}{t_2})} \\ \vdots & \vdots & \vdots & \vdots \\ 1&{\cos ({\omega _1}{t_n})}& \ldots &{\sin ({\omega _m}{t_n})} \end{array}} \right].$$
(8)

For an of over determined equations (n > 2m + 1), the least-squares solution of the above system and the associated covariance matrix are given by (Vanicek and Krakiwsky 1986) as follows:

$$\hat X={({A^T}A)^{ - 1}}{A^T}Y$$
(9)
$${\hat C_{\hat X}}=\frac{{{{(Y - A\hat X)}^T}(Y - A\hat X){{({A^T}A)}^{ - 1}}}}{{n - (2m+1)}}.$$
(10)

In which the diagonal elements represent the variances \(\sigma _{{{X_i}}}^{2}(i=1,2, \ldots ,2m+1)\) of the estimated parameters and the off-diagonal elements are the covariances \(\sigma _{{{X_i}{X_j}}}^{2}(i,j=1,2, \ldots ,2m+1)\) between pairs of parameters.

Data description

The area of study is Hudson bay, the eastern shore where Inukjauk station lies, Ottawa, Canada. The available data set is the hourly sea level (m) for about 9 years. Also, the average daily atmospheric barometric pressure and wind speed is available in the period (1939–2005) with percentage of gaps about 29%. Figure 1 shows the plots of the available data, respectively. These data will be analyzed using least-squares spectral analysis which will be described in the next sections.

Fig. 1
figure 1

Water level, atmospheric pressure, and wind speed records

The LSSA method is used to determine the spectrum and harmonic constituents in the tidal data. After forcing all known tidal constituents from the water level, the spectrum is determined again. Figures 2 and 3 show the whole spectrum of these data and the spectrum after forcing all significant constituents, respectively.

Fig. 2
figure 2

LSSA spectrum of tidal data

Fig. 3
figure 3

LSSA spectrum after forcing all known constituents

It is clear from Fig. 3 that after forcing all known tidal constituents, there are still some peaks of high power at long periods (low frequencies). In the next sections, we will investigate the rule of atmospheric pressure and wind speed to form such peaks. In other words, the response of water level to atmospheric pressure and wind speed will be determined.

Ocean response to atmospheric pressure

To investigate the ocean response to the atmospheric pressure first, the least-squares spectra of both tidal and pressure data is computed. Second, the summation of the natural logarithm of both spectra is computed to obtain the product spectrum, Fig. 4. Third, the amplitudes and phases of all significant peaks are computed for both series. Finally, the amplitude and phase response are computed as described in Pagiatakis et al. (2007). Moreover, Fig. 5 shows the tide amplitude and phase response of water level to atmospheric pressure.

Fig. 4
figure 4

Tide least-squares spectrum (top), pressure least-squares spectrum (middle), and product least-squares spectrum (bottom)

Fig. 5
figure 5

Water level amplitude response (left) and phase response (right) to atmospheric pressure

As shown in Figure 5, weighted least-squares can be used to fit the best model that describes the amplitude response of water level to the atmospheric pressure as follows:

$$G(T)=3.115 \times {10^{ - 13}} \times {T^{2.516}}+0.002058,$$
(11)

where T is the period, which of course can be replaced by frequency. This response shows that 1 millibar atmospheric pressure corresponds to change of water level by an average as 4.5 mm. weighted least-squares can also be used to determine the best fit equation that represents the phase response of water level to atmospheric pressure as follows:

$$\Delta \phi (T)=273.2858 - 0.0139 \times T.$$
(12)

Ocean response to wind speed

The same steps used in the previous section are applied to calculate the ocean response to the wind speed. In this stage, we will consider the water level data and the wind speed data. Figure 6 shows the tide least-squares spectrum, the wind least-squares spectrum, and the product least-squares spectrum, respectively. In addition, Fig. 7 shows the tide amplitude and phase response of water level to wind speed.

Fig. 6
figure 6

Tide least-squares spectrum (top), Wind speed least-squares spectrum (middle), and product least-squares spectrum (bottom)

Fig. 7
figure 7

Amplitude (left) and phase (right) response to wind speed

Weighted least-squares method is used to determine the best equation that describes the amplitude response of water level to the wind speed as follows:

$$G(T)=3.698 \times {10^7} \times {T^{ - 3.684}}+0.1282,$$
(13)

and the best fit equation to the phase response is found to be as follows:

$$\Delta \phi (T)=229.8 - 0.005786 \times T$$
(14)

From these results we can see that the water level response to the wind is less than the corresponding response to atmospheric pressure (the power of pressure effect to the power of wind effect = 1.64 × 106). Recall that in Fig. 3, after all known tidal constituents are forced, spectrum still includes several peaks. After properly modelling the ocean response to atmospheric pressure and wind speed, the spectrum is recalculated. As shown in Fig. 8, the remaining spectrum after forcing all known tidal constituents and considering atmospheric pressure and wind speed is greatly reduced showing noise at low frequency.

Fig. 8
figure 8

Power spectrum after removing atmospheric pressure and wind speed effect

Conclusions

In this paper, the least-squares spectral analysis approach is used to analyze long series of water level, atmospheric pressure, and wind speed data extended more than 9 years. The tide prediction model is developed by determining the harmonic constituents of the tidal data using LSSA approach. It is found that the resultant spectrum still contains different peaks after forcing all tidal constituents.

The water level response to atmospheric pressure is investigated. The amplitude and phase response of water level to atmospheric pressure are determined. It is shown that the response of water level to the atmospheric pressure has an average of about 4.5 mm/millibar. Moreover, the amplitude and phase response of water level to wind speed are also investigated. It is found that the power ratio of pressure effect to wind effect is about 1.64 × 106. That means the effect of wind is too small compared with the effect of atmospheric pressure which can be considered a special case for this location as it is surrounded by mountains that affect the wind speed and its variation. After removing the effect of atmospheric pressure and wind speed from the water level, it is found that the resultant power spectrum is greatly reduced to show mostly noise at high frequency only.