Least Squares Fit to Main Harmonics

Slides:



Advertisements
Similar presentations
Navigation Fundamentals
Advertisements

Data Modeling and Parameter Estimation Nov 9, 2005 PSCI 702.
Rotary Spectra Separate vector time series (e.g., current or wind data) into clockwise and counter-clockwise rotating circular components. Instead of having.
Northwest National Marine Renewable Energy Center Site Characterization of Tidal Resources: Admiralty Inlet Jeff Epler.
Selected Problems from Chapter o.
What are the dominant frequencies? Fourier transforms decompose a data sequence into a set of discrete spectral estimates – separate the variance of a.
Vectors and Scalars AP Physics C.
Applications of Trigonometric Functions
Mission Planning and SP1. Outline of Session n Standards n Errors n Planning n Network Design n Adjustment.
Coordinate Systems 3.2Vector and Scalar quantities 3.3Some Properties of Vectors 3.4Components of vectors and Unit vectors.
Sundermeyer MAR 550 Spring Laboratory in Oceanography: Data and Methods MAR550, Spring 2013 Miles A. Sundermeyer Additional Topics - Rotary Spectra.
VECTORS. Vectors A person walks 5 meters South, then 6 meters West. How far did he walk?
Applications of Trigonometric Functions. Solving a right triangle means finding the missing lengths of its sides and the measurements of its angles. We.
The observed flow u’ may be represented as the sum of M harmonics:
EXAMPLE 2 Write an equation given a vertex and a co-vertex Write an equation of the ellipse that has a vertex at (0, 4), a co-vertex at (– 3, 0), and center.
Physics VECTORS AND PROJECTILE MOTION
SECTION: 10-2 ELLIPSES WARM-UP
Least Squares Fit to Main Harmonics The observed flow u’ may be represented as the sum of M harmonics: u’ = u 0 + Σ j M =1 A j sin (  j t +  j ) For.
Ch-3 Help-Session. CH T082 Q7. Vector A has a magnitude of 40.0 cm and is directed 60.0 degrees above the negative x-axis. Vector B has magnitude.
VECTORS. BIG IDEA: Horizontal and vertical motions of an object are independent of one another.
Vectors and Scalars. Physics 11 - Key Points of the Lesson 1.Use the tip-to-tail method when adding or subtracting vectors 2.The sum of all vectors is.
Theodolite: Tachymat wild TC2002S Laser Distantiometer: Distomat Wild DI2002 Corner Cube reflector: Wild GPH1P East Up North M E 1 R N T 2 Local Survey.
Statistics 350 Lecture 2. Today Last Day: Section Today: Section 1.6 Homework #1: Chapter 1 Problems (page 33-38): 2, 5, 6, 7, 22, 26, 33, 34,
WHAT’S YOUR VECTOR VICTOR???. Scalar Multiplication Multiplying a vector by a scalar will ONLY CHANGE its magnitude. Thus if A = 12 < 105, Then 2A = 24.
Waves and Oscillations_LP_3_Spring-2017
Section 6.2 The Unit Circle and Circular Functions
CS 591 S1 – Computational Audio – Spring 2017
COMPLEX NUMBERS and PHASORS
Question 3 A car of mass 800kg is capable of reaching a speed of 20m/s from rest in 36s. Work out the force needed to produce this acceleration. m = 800kg v.
Vectors Vector vs Scalar Quantities and Examples
Vectors (Knight: 3.1 to 3.4).
ECE 3301 General Electrical Engineering
Relative Motion.
The observed flow u’ may be represented as the sum of M harmonics:
Warm Up Find each product, if possible. 1. AB 2. BA.
Pointing the Way Vectors.
Physics Vectors Javid.
Introduction to Vectors
MM5 – Applications of Trigonometry
Physics VECTORS AND PROJECTILE MOTION
Physics 114: Exam 2 Review Material from Weeks 7-11
Vectors List 5-8 situations that would involve 1 or 2 different forces acting on an object that cause it to move in a certain direction.
Sum and Difference Identities
Sum and Difference Identities for the Sin Function
Least Squares Fit to Main Harmonics
Rotary Spectra Separate vector time series (e.g., current or wind data) into clockwise and counter-clockwise rotating circular components. Instead of having.
SEC 8.2: TRIGONOMETRIC INTEGRALS
Ellipses 5.3 (Chapter 10 – Conics). Ellipses 5.3 (Chapter 10 – Conics)
Ellipse Notes.
Vectors and Scalars AP Physics C.
Least Squares Fit to Main Harmonics
Chapter 4 Vector Addition
Ellipses Objectives: Write the standard equation for an ellipse given sufficient information Given an equation of an ellipse, graph it and label the center,
Laboratory in Oceanography: Data and Methods
Nonlinear Fitting.
Clicker Question 1 At what point (x, y) does the curve x = sin(t), y = t 3 – 24 ln(t) have a horizontal tangent ? A. (1, 2) B. (0, 2) C. (0, 8(1 – 3.
Physics VECTORS AND PROJECTILE MOTION
Regression All about going back (regressing) from the points to the function from which they came. We are looking at linear regression.
Vectors.
Vector & Scalar Quantities
Chapter 3 Vectors Questions 3-1 Vectors and Scalars
Physics VECTORS AND PROJECTILE MOTION
Unit 1 Our Dynamic Universe Vectors - Revision
Trigonometry. Trigonometry More Trig Triangles.
What is your best guess as to how the given function
6.1.1 Deriving OLS OLS is obtained by minimizing the sum of the square errors. This is done using the partial derivative 6.
Aim: How do we explain the motion of a particle attached to a spring?
Vector Components.
Vector Operations Unit 2.3.
Vectors and Scalars AP Physics C.
Presentation transcript:

Least Squares Fit to Main Harmonics The observed flow u’ may be represented as the sum of M harmonics: u’ = u0 + ΣjM=1 Aj sin (j t + j) For M = 1 harmonic (e.g. a diurnal or semidiurnal constituent): u’ = u0 + A1 sin (1t + 1) With the trigonometric identity: sin (A + B) = cosBsinA + cosAsinB u’ = u0 + a1 sin (1t ) + b1 cos (1t ) taking: a1 = A1 cos 1 b1 = A1 sin 1 so u’ is the ‘harmonic representation’

2u0b1 cos (1t ) + 2a1 b1 sin (1t ) cos (1t ) + a12 sin2 (1t ) + The squared errors between the observed current u and the harmonic representation may be expressed as 2 : 2 = ΣN [u - u’ ]2 = u 2 - 2uu’ + u’ 2 Then: 2 = ΣN {u 2 - 2uu0 - 2ua1 sin (1t ) - 2ub1 cos (1t ) + u02 + 2u0a1 sin (1t ) + 2u0b1 cos (1t ) + 2a1 b1 sin (1t ) cos (1t ) + a12 sin2 (1t ) + b12 cos2 (1t ) } Using u’ = u0 + a1 sin (1t ) + b1 cos (1t ) Then, to find the minimum distance between observed and theoretical values we need to minimize 2 with respect to u0 a1 and b1, i.e., δ 2/ δu0 , δ 2/ δa1 , δ 2/ δb1 : δ2/ δu0 = ΣN { -2u +2u0 + 2a1 sin (1t ) + 2b1 cos (1t ) } = 0 δ2/ δa1 = ΣN { -2u sin (1t ) +2u0 sin (1t ) + 2b1 sin (1t ) cos (1t ) + 2a1 sin2(1t ) } = 0 δ2/ δb1 = ΣN {-2u cos (1t ) +2u0 cos (1t ) + 2a1 sin (1t ) cos (1t ) + 2b1 cos2(1t ) } = 0

ΣN { -2u +2u0 + 2a1 sin (1t ) + 2b1 cos (1t ) } = 0 ΣN {-2u sin (1t ) +2u0 sin (1t ) + 2b1 sin (1t ) cos (1t ) + 2a1 sin2(1t ) } = 0 ΣN { -2u cos (1t ) +2u0 cos (1t ) + 2a1 sin (1t ) cos (1t ) + 2b1 cos2(1t ) } = 0 Rearranging: ΣN { u = u0 + a1 sin (1t ) + b1 cos (1t ) } ΣN { u sin (1t ) = u0 sin (1t ) + b1 sin (1t ) cos (1t ) + a1 sin2(1t ) } ΣN { u cos (1t ) = u0 cos (1t ) + a1 sin (1t ) cos (1t ) + b1 cos2(1t ) } And in matrix form: ΣN u cos (1t ) ΣN cos (1t ) ΣN sin (1t ) cos (1t ) ΣN cos2(1t ) b1 ΣN u N ΣN sin (1t ) Σ N cos (1t ) u0 ΣN u sin (1t ) = ΣN sin (1t ) ΣN sin2(1t ) ΣN sin (1t ) cos (1t ) a1 X = A-1 B B = A X

Finally... The residual or mean is u0 The phase of constituent 1 is: 1 = atan ( b1 / a1 ) The amplitude of constituent 1 is: A1 = ( b12 + a12 )½ Pay attention to the arc tangent function used. For example, in IDL you should use atan (b1,a1) and in MATLAB, you should use atan2

For M = 2 harmonics (e.g. diurnal and semidiurnal constituents): u’ = u0 + A1 sin (1t + 1) + A2 sin (2t + 2) ΣN cos (1t ) ΣN sin (1t ) cos (1t ) ΣN cos2(1t ) ΣN cos (1t ) sin (2t ) ΣN cos (1t ) cos (2t ) N ΣN sin (1t ) Σ N cos (1t ) ΣN sin (2t ) Σ N cos (2t ) ΣN sin (1t ) ΣN sin2(1t ) ΣN sin (1t ) cos (1t ) ΣN sin (1t ) sin (2t ) ΣN sin (1t ) cos (2t ) Matrix A is then: ΣN sin (2t ) ΣN sin (1t ) sin (2t ) ΣN cos (1t ) sin (2t ) ΣN sin2(2t ) ΣN sin (2t ) cos (2t ) ΣN cos (2t ) ΣN sin (1t ) cos (2t ) ΣN cos (1t ) cos (2t ) ΣN sin (2t ) cos (2t ) ΣN cos2 (2t ) Remember that: X = A-1 B and B = ΣN u cos (1t ) ΣN u sin (2t ) ΣN u cos (2t ) ΣN u ΣN u sin (1t ) u0 a1 b1 a2 b2 X =

Σ [< uobs > - upred] 2 Σ [<uobs > - uobs] 2 Goodness of Fit: Σ [< uobs > - upred] 2 ------------------------------------- Σ [<uobs > - uobs] 2 Root mean square error: [1/N Σ (uobs - upred) 2] ½

Fit with M2 only

Fit with M2, K1

Fit with M2, S2, K1 Rayleigh Criterion: record frequency ≤ ω1 – ω2

Fit with M2, S2, K1, M4, M6

Tidal Ellipse Parameters ua, va, up, vp are the amplitudes and phases of the east-west and north-south components of velocity amplitude of the clockwise rotary component amplitude of the counter-clockwise rotary component phase of the clockwise rotary component phase of the counter-clockwise rotary component The characteristics of the tidal ellipses are: Major axis = M = Qcc + Qc minor axis = m = Qcc - Qc ellipticity = m / M Phase = -0.5 (thetacc - thetac) Orientation = 0.5 (thetacc + thetac) Ellipse Coordinates:

M2 S2 K1

Fit with M2 only (dotted) and M2 + M4 (continuous)

Fit with M2 only (dotted) and M2 + M6 (continuous)

Variance explained (%) with M2 and M6 Distance (km)

Rms error (cm/s) with M2 and M6

U(z) = (u* / κ) ln [(H –z ) / z0] u* = 0.055 m/s Κ = 0.4 z0 = 0.00125 m/s