Laboratory in Oceanography: Data and Methods

Slides:



Advertisements
Similar presentations
Complex Representation of Harmonic Oscillations. The imaginary number i is defined by i 2 = -1. Any complex number can be written as z = x + i y where.
Advertisements

Lecture 14 User-defined functions Function: concept, syntax, and examples © 2007 Daniel Valentine. All rights reserved. Published by Elsevier.
Lecture 5.
Kinematics – describes the motion of object without causes that leaded to the motion We are not interested in details of the object (it can be car, person,
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. A Concise Introduction to MATLAB ® William J. Palm III.
A MATLAB function is a special type of M-file that runs in its own independent workspace. It receives input data through an input argument list, and returns.
Complex Numbers for AC Circuits Topics Covered in Chapter : Positive and Negative Numbers 24-2: The j Operator 24-3: Definition of a Complex Number.
Data Modeling and Parameter Estimation Nov 9, 2005 PSCI 702.
1 LES of Turbulent Flows: Lecture 4 (ME EN ) Prof. Rob Stoll Department of Mechanical Engineering University of Utah Spring 2011.
Rotary Spectra Separate vector time series (e.g., current or wind data) into clockwise and counter-clockwise rotating circular components. Instead of having.
Regression Analysis Module 3. Regression Regression is the attempt to explain the variation in a dependent variable using the variation in independent.
Chapter 15: Kinetics of a Particle: Impulse and MomentumTextbook: Engineering Mechanics- STATICS and DYNAMICS- 11th Ed., R. C. Hibbeler and A. Gupta Course.
Ch 9.1: The Phase Plane: Linear Systems
Chapter 5 Orthogonality
Image Enhancement in the Frequency Domain Part I Image Enhancement in the Frequency Domain Part I Dr. Samir H. Abdul-Jauwad Electrical Engineering Department.
What are the dominant frequencies? Fourier transforms decompose a data sequence into a set of discrete spectral estimates – separate the variance of a.
Hydrologic Statistics
Vectors and Scalars AP Physics C.
Physics 114: Lecture 15 Probability Tests & Linear Fitting Dale E. Gary NJIT Physics Department.
Sundermeyer MAR 550 Spring Laboratory in Oceanography: Data and Methods MAR550, Spring 2013 Miles A. Sundermeyer Linear Algebra & Calculus Review.
EE2010 Fundamentals of Electric Circuits Lecture 13 Sinusoidal sources and the concept of phasor in circuit analysis.
Adding Vectors, Rules When two vectors are added, the sum is independent of the order of the addition. This is the Commutative Law of Addition.
1 Tips for solving Project 1 Reactor SO 3 SO 2 +O 2.
Random Processes ECE460 Spring, Power Spectral Density Generalities : Example: 2.
Fourier series. The frequency domain It is sometimes preferable to work in the frequency domain rather than time –Some mathematical operations are easier.
Module 2 SPECTRAL ANALYSIS OF COMMUNICATION SIGNAL.
1 LES of Turbulent Flows: Lecture 2 Supplement (ME EN ) Prof. Rob Stoll Department of Mechanical Engineering University of Utah Fall 2014.
Functions CS 103 March 3, Review A function is a set of code we can execute on command to perform a specific task A function is a set of code we.
Functions CS 103. Review A function is a set of code we can execute on command to perform a specific task When we call a function, we can pass arguments.
Sundermeyer MAR 550 Spring Laboratory in Oceanography: Data and Methods MAR550, Spring 2013 Miles A. Sundermeyer Additional Topics - Rotary Spectra.
LES of Turbulent Flows: Lecture 2 (ME EN )
CHEE825 Fall 2005J. McLellan1 Spectral Analysis and Input Signal Design.
1 Principal stresses/Invariants. 2 In many real situations, some of the components of the stress tensor (Eqn. 4-1) are zero. E.g., Tensile test For most.
ELECTRICAL TECHNOLOGY EET 103/4
Characteristic vibrations of the field. LL2 section 52.
Chapter 16 Waves-I Types of Waves 1.Mechanical waves. These waves have two central features: They are governed by Newton’s laws, and they can exist.
Chapter 16 Waves-I Types of Waves 1.Mechanical waves. These waves have two central features: They are governed by Newton’s laws, and they can exist.
BASIC STATISTICAL CONCEPTS Statistical Moments & Probability Density Functions Ocean is not “stationary” “Stationary” - statistical properties remain constant.
Discrete-time Random Signals
Understanding the difference between an engineer and a scientist There are many similarities and differences.
Chapter 20 Statistical Considerations Lecture Slides The McGraw-Hill Companies © 2012.
ME – VII SEM Course Name- Mechanical Vibrations Manav Rachna College of Engg.
ESTIMATION METHODS We know how to calculate confidence intervals for estimates of  and  2 Now, we need procedures to calculate  and  2, themselves.
1 Introduction to bx Program (BANAL) To accompany Exercise 2 C.T. Russell April 9, 2008.
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.
Richard Kass/F02P416 Lecture 6 1 Lecture 6 Chi Square Distribution (  2 ) and Least Squares Fitting Chi Square Distribution (  2 ) (See Taylor Ch 8,
CORRELATION-REGULATION ANALYSIS Томский политехнический университет.
Biomathematics seminar Application of Fourier to Bioinformatics Girolamo Giudice.
Digital Image Processing Lecture 8: Fourier Transform Prof. Charlene Tsai.
ESTIMATION METHODS We know how to calculate confidence intervals for estimates of  and 2 Now, we need procedures to calculate  and 2 , themselves.
Physics 114: Lecture 13 Probability Tests & Linear Fitting
Chapter 7. Classification and Prediction
Sinusoidal Excitation of Circuits
COMPLEX NUMBERS and PHASORS
SIGNALS PROCESSING AND ANALYSIS
Multiple Regression.
Laboratory in Oceanography: Data and Methods
Physics 114: Exam 2 Review Material from Weeks 7-11
Periodic Functions and Fourier Series
Rotary Spectra Separate vector time series (e.g., current or wind data) into clockwise and counter-clockwise rotating circular components. Instead of having.
Chapter 12 Curve Fitting : Fitting a Straight Line Gab-Byung Chae
Laboratory in Oceanography: Data and Methods
6-1 Introduction To Empirical Models
Chi Square Distribution (c2) and Least Squares Fitting
4. Image Enhancement in Frequency Domain
ESTIMATION METHODS We know how to calculate confidence intervals for estimates of  and 2 Now, we need procedures to calculate  and 2 , themselves.
by ENS William C. Blodgett, Jr. 22MAR02
Normal modes in three dimensions
Part 2 of Unit 2 vocabulary
Presentation transcript:

Laboratory in Oceanography: Data and Methods Additional Topics - Rotary Spectra MAR599, Spring 2009 Miles A. Sundermeyer

Additional Topics – Rotary Spectra Rotary Spectra decompose vector time series (e.g., current or wind data) into clockwise and counter-clockwise components. Suppose we have u and v components of velocity: These can be written in complex form as: Next, I CONSIDERED MULTIPLE EDDY STIRRING, by placing multiple grid mixers in the same tank. The same experimental parameters were USED AS IN THE SINGLE EXPERIMENTS. THE ONLY difference was that multiple MIXERS WERE ACTUATED at a prescribed SEQUENCE THE SCHEMATIC shows the approximate POSITIONS

Additional Topics – Rotary Spectra Now write R as a sum of clockwise and counter-clockwise rotating components as follows: (Note: eiwt = cos(wt) + i sin(wt) rotates counter-clockwise in the complex plane, and e-iwt = cos(wt) – i sin(wt) rotates clockwise.) Comparing this to the final expression on the previous slide, we had: Equating the coefficients of the cosine and sine parts, we find: Next, I CONSIDERED MULTIPLE EDDY STIRRING, by placing multiple grid mixers in the same tank. The same experimental parameters were USED AS IN THE SINGLE EXPERIMENTS. THE ONLY difference was that multiple MIXERS WERE ACTUATED at a prescribed SEQUENCE THE SCHEMATIC shows the approximate POSITIONS

Additional Topics – Rotary Spectra The magnitudes of the rotary components follow as: Note: since the CW and CCW components are rotating at the same frequency but in opposite directions there will be times when they are additive (pointing in the same direction) and times when they are opposing (pointing in opposite direction) and tend to cancel each other out. These additive and opposing times define the major axis = (R++ R-) and the minor axis = (R+- R-) of an ellipse. Next, I CONSIDERED MULTIPLE EDDY STIRRING, by placing multiple grid mixers in the same tank. The same experimental parameters were USED AS IN THE SINGLE EXPERIMENTS. THE ONLY difference was that multiple MIXERS WERE ACTUATED at a prescribed SEQUENCE THE SCHEMATIC shows the approximate POSITIONS

Additional Topics – Rotary Spectra While the orientation and phase of the ellipses: where: Next, I CONSIDERED MULTIPLE EDDY STIRRING, by placing multiple grid mixers in the same tank. The same experimental parameters were USED AS IN THE SINGLE EXPERIMENTS. THE ONLY difference was that multiple MIXERS WERE ACTUATED at a prescribed SEQUENCE THE SCHEMATIC shows the approximate POSITIONS

Additional Topics – Rotary Spectra Examples: Next, I CONSIDERED MULTIPLE EDDY STIRRING, by placing multiple grid mixers in the same tank. The same experimental parameters were USED AS IN THE SINGLE EXPERIMENTS. THE ONLY difference was that multiple MIXERS WERE ACTUATED at a prescribed SEQUENCE THE SCHEMATIC shows the approximate POSITIONS

Additional Topics – Rotary Spectra Examples: Next, I CONSIDERED MULTIPLE EDDY STIRRING, by placing multiple grid mixers in the same tank. The same experimental parameters were USED AS IN THE SINGLE EXPERIMENTS. THE ONLY difference was that multiple MIXERS WERE ACTUATED at a prescribed SEQUENCE THE SCHEMATIC shows the approximate POSITIONS

Additional Topics – Rotary Spectra Examples: Next, I CONSIDERED MULTIPLE EDDY STIRRING, by placing multiple grid mixers in the same tank. The same experimental parameters were USED AS IN THE SINGLE EXPERIMENTS. THE ONLY difference was that multiple MIXERS WERE ACTUATED at a prescribed SEQUENCE THE SCHEMATIC shows the approximate POSITIONS

Additional Topics – Rotary Spectra Examples: Next, I CONSIDERED MULTIPLE EDDY STIRRING, by placing multiple grid mixers in the same tank. The same experimental parameters were USED AS IN THE SINGLE EXPERIMENTS. THE ONLY difference was that multiple MIXERS WERE ACTUATED at a prescribed SEQUENCE THE SCHEMATIC shows the approximate POSITIONS

Additional Topics – Rotary Spectra Suppose now that we have two time series, ocean current, and wind ... Autospectrum: The autospectrum for each time series is: e.g., Scc (f ≥ 0) is the power spectral density of the anticlockwise component of the current time-series. The area under this curve versus frequency will equal the variance of the cross-shore and along-shore current velocity components. Next, I CONSIDERED MULTIPLE EDDY STIRRING, by placing multiple grid mixers in the same tank. The same experimental parameters were USED AS IN THE SINGLE EXPERIMENTS. THE ONLY difference was that multiple MIXERS WERE ACTUATED at a prescribed SEQUENCE THE SCHEMATIC shows the approximate POSITIONS

Additional Topics – Rotary Spectra Inner cross-spectrum: The inner cross-spectrum of two time series compares the joint energy of the two time series for the rotary components rotating in the same direction (e.g. the clockwise component of one vector to the clockwise component of the other vector): with * denoting the complex conjugate and <> representing an ensemble average. Next, I CONSIDERED MULTIPLE EDDY STIRRING, by placing multiple grid mixers in the same tank. The same experimental parameters were USED AS IN THE SINGLE EXPERIMENTS. THE ONLY difference was that multiple MIXERS WERE ACTUATED at a prescribed SEQUENCE THE SCHEMATIC shows the approximate POSITIONS

Additional Topics – Rotary Spectra Inner coherence squared: The inner coherence-squared between the wind and current time series at frequency (f) is calculated according to: The coherence ranges from 0 to 1, and represents the similarity (or variability) of the two time series to each other. A value near unity indicates a high degree of correlation, while a coherence near zero indicates a negligible correlation. Using a 95% confidence interval, a limiting value, or level to which coherence-squared values occur by chance is given by: where DOF represents the degrees of freedom contained in the time-series. Next, I CONSIDERED MULTIPLE EDDY STIRRING, by placing multiple grid mixers in the same tank. The same experimental parameters were USED AS IN THE SINGLE EXPERIMENTS. THE ONLY difference was that multiple MIXERS WERE ACTUATED at a prescribed SEQUENCE THE SCHEMATIC shows the approximate POSITIONS

Additional Topics – Rotary Spectra Inner phase: The inner phase for the cross spectrum and coherence measures the phase lead of the rotary component of the one time-series with respect to the other time-series. It can be calculated according to the following equation: Next, I CONSIDERED MULTIPLE EDDY STIRRING, by placing multiple grid mixers in the same tank. The same experimental parameters were USED AS IN THE SINGLE EXPERIMENTS. THE ONLY difference was that multiple MIXERS WERE ACTUATED at a prescribed SEQUENCE THE SCHEMATIC shows the approximate POSITIONS

Additional Topics – Rotary Spectra Example: Next, I CONSIDERED MULTIPLE EDDY STIRRING, by placing multiple grid mixers in the same tank. The same experimental parameters were USED AS IN THE SINGLE EXPERIMENTS. THE ONLY difference was that multiple MIXERS WERE ACTUATED at a prescribed SEQUENCE THE SCHEMATIC shows the approximate POSITIONS

Additional Topics – Rotary Spectra The following are similarly defined for the rotary components rotating in the opposite direction (e.g. the clockwise component of one vector to the anticlockwise component of the other vector) Outer autospectrum Outer cross-spectrum Outer coherence squared Outer phase Next, I CONSIDERED MULTIPLE EDDY STIRRING, by placing multiple grid mixers in the same tank. The same experimental parameters were USED AS IN THE SINGLE EXPERIMENTS. THE ONLY difference was that multiple MIXERS WERE ACTUATED at a prescribed SEQUENCE THE SCHEMATIC shows the approximate POSITIONS

Additional Topics – Rotary Spectra Key Points: Rotary spectra decompose complex time series into CW and CCW rotating components. Complex data could be wind, currents, T & S, etc. Can be used to analyze wind, waves or currents and/or to isolate inertial motions, tidal motions, and certain classes of waves. Rotary spectra are invariant under coordinate rotation. References: Mooers, C. N. K., 1973. A technique for the cross spectrum analysis of pairs of complex-valued time series, with emphasis on properties of polarized components and rotational invariants. DSR, 1973, Vol. 20, 1129-1141 Next, I CONSIDERED MULTIPLE EDDY STIRRING, by placing multiple grid mixers in the same tank. The same experimental parameters were USED AS IN THE SINGLE EXPERIMENTS. THE ONLY difference was that multiple MIXERS WERE ACTUATED at a prescribed SEQUENCE THE SCHEMATIC shows the approximate POSITIONS

Laboratory in Oceanography: Data and Methods Additional Topics Other Cool Stuff in Matlab MAR599, Spring 2009 Miles A. Sundermeyer

Additional Topics – Other Cool Stuff Functions A function in Matlab is an m-file that allows passing of variables as input and output. Advantage/disadvantage is that the workspace within a function is independent from the workspace calling the function (use ‘global’ variable declarations, or ‘evalin’ command to circumvent this) Good for tasks that have to be done frequently, or for complicated tasks to help make code more readable. Next, I CONSIDERED MULTIPLE EDDY STIRRING, by placing multiple grid mixers in the same tank. The same experimental parameters were USED AS IN THE SINGLE EXPERIMENTS. THE ONLY difference was that multiple MIXERS WERE ACTUATED at a prescribed SEQUENCE THE SCHEMATIC shows the approximate POSITIONS

Additional Topics – Other Cool Stuff Function Syntax Enclose the input argument list in parentheses Separate the inputs with commas Enclose string arguments with single quotation marks Optionally assign any output from the function to one or more output arguments Examples: out = functionname(variable, 'string', expression, ...); [out1, out2, ..., outN] = functionname(in1, in2, ..., inN); Next, I CONSIDERED MULTIPLE EDDY STIRRING, by placing multiple grid mixers in the same tank. The same experimental parameters were USED AS IN THE SINGLE EXPERIMENTS. THE ONLY difference was that multiple MIXERS WERE ACTUATED at a prescribed SEQUENCE THE SCHEMATIC shows the approximate POSITIONS

Additional Topics – Other Cool Stuff Clearing Functions from Memory You can use ‘clear’ in any of the following ways to remove functions from the MATLAB workspace. Any functions called must be within the scope of (i.e., visible to) the calling function or your MATLAB session. The function precedence order determines the precedence of one function over another based on the type of function and its location in MATLAB’s path Find which function MATLAB calls using the ‘which’ command, e.g., >> which mean C:\Program Files\MATLAB\R2007a\toolbox\matlab\datafun\mean.m Syntax Description clear functionname Remove specified function from workspace. clear functions Remove all compiled M-functions. clear all Remove all variables and functions. Next, I CONSIDERED MULTIPLE EDDY STIRRING, by placing multiple grid mixers in the same tank. The same experimental parameters were USED AS IN THE SINGLE EXPERIMENTS. THE ONLY difference was that multiple MIXERS WERE ACTUATED at a prescribed SEQUENCE THE SCHEMATIC shows the approximate POSITIONS

Additional Topics – Other Cool Stuff Example Suppose we wish to fit a Gaussian curve to data ... Our model is: where we wish to determine three parameters: A, xo, and s To use a linear least squares, we would first need to take logarithm of both sides: Instead use ‘lsqnonlin’, or similar ‘by hand’ approach to find best fit for three parameters simultaneously Next, I CONSIDERED MULTIPLE EDDY STIRRING, by placing multiple grid mixers in the same tank. The same experimental parameters were USED AS IN THE SINGLE EXPERIMENTS. THE ONLY difference was that multiple MIXERS WERE ACTUATED at a prescribed SEQUENCE THE SCHEMATIC shows the approximate POSITIONS

Additional Topics – Other Cool Stuff Next, I CONSIDERED MULTIPLE EDDY STIRRING, by placing multiple grid mixers in the same tank. The same experimental parameters were USED AS IN THE SINGLE EXPERIMENTS. THE ONLY difference was that multiple MIXERS WERE ACTUATED at a prescribed SEQUENCE THE SCHEMATIC shows the approximate POSITIONS

Additional Topics – Other Cool Stuff Notable Points Re: Functions: Use nargin to allow variable number of inputs Sometimes useful to pass a function reference to another function, e.g., lsqnonlin Other Miscellaneous Stuff … guide - GUI development environment beep.m - beep sound.m - play sounds Next, I CONSIDERED MULTIPLE EDDY STIRRING, by placing multiple grid mixers in the same tank. The same experimental parameters were USED AS IN THE SINGLE EXPERIMENTS. THE ONLY difference was that multiple MIXERS WERE ACTUATED at a prescribed SEQUENCE THE SCHEMATIC shows the approximate POSITIONS