Determining the Optimal Sampling Rate of a Sonic Anemometer Based on the Shannon-Nyquist Sampling Theorem

Similar documents
Matlab GUI for WFB spectral analysis

Data Quality Assurance and Control Methods for Weather Observing Networks. Cindy Luttrell University of Oklahoma Oklahoma Mesonet

Proposals of Summer Placement Programme 2015

Command-induced Tracking Jitter Study I D. Clark November 24, 2009

ANALYZER BASICS WHAT IS AN FFT SPECTRUM ANALYZER? 2-1

Bandwidth-dependent transformation of noise data from frequency into time domain and vice versa

Hong Kong Observatory Summer Placement Programme 2015

The impact of window size on AMV

Guidelines on Quality Control Procedures for Data from Automatic Weather Stations

Doppler. Doppler. Doppler shift. Doppler Frequency. Doppler shift. Doppler shift. Chapter 19

Signal to Noise Instrumental Excel Assignment

Difference in levels of groundborne noise and vibrations between the T-1300 and MX-3000 metro trains in Oslo

Convolution, Correlation, & Fourier Transforms. James R. Graham 10/25/2005

FUZZY IMAGE PROCESSING APPLIED TO TIME SERIES ANALYSIS

Scholar: Elaina R. Barta. NOAA Mission Goal: Climate Adaptation and Mitigation

FAST Fourier Transform (FFT) and Digital Filtering Using LabVIEW

Predicting daily incoming solar energy from weather data

Global Seasonal Phase Lag between Solar Heating and Surface Temperature

AP Physics 1 and 2 Lab Investigations

Implementation of a Gabor Transform Data Quality-Control Algorithm for UHF Wind Profiling Radars

Analysis of Wing Leading Edge Data. Upender K. Kaul Intelligent Systems Division NASA Ames Research Center Moffett Field, CA 94035

Anomaly Detection in Predictive Maintenance

Improvement in the Assessment of SIRS Broadband Longwave Radiation Data Quality

CFD Based Air Flow and Contamination Modeling of Subway Stations

Selecting RJ Bandwidth in EZJIT Plus Software

RANDOM VIBRATION AN OVERVIEW by Barry Controls, Hopkinton, MA

Waves. Wave Parameters. Krauss Chapter Nine

PeakVue Analysis for Antifriction Bearing Fault Detection

Author: Dr. Society of Electrophysio. Reference: Electrodes. should include: electrode shape size use. direction.

Spectrum Level and Band Level

AN-007 APPLICATION NOTE MEASURING MAXIMUM SUBWOOFER OUTPUT ACCORDING ANSI/CEA-2010 STANDARD INTRODUCTION CEA-2010 (ANSI) TEST PROCEDURE

Introduction to Fourier Transform Infrared Spectrometry

B3. Short Time Fourier Transform (STFT)

Forecaster comments to the ORTECH Report

Quarterly Progress and Status Report. Measuring inharmonicity through pitch extraction

Chapter 10 Introduction to Time Series Analysis

Developing Continuous SCM/CRM Forcing Using NWP Products Constrained by ARM Observations

PRACTICAL GUIDE TO DATA SMOOTHING AND FILTERING

Statistical Analysis of Arterial Blood Pressure (ABP), Central Venous. Pressure (CVP), and Intracranial Pressure (ICP)

Agilent Creating Multi-tone Signals With the N7509A Waveform Generation Toolbox. Application Note

Short-time FFT, Multi-taper analysis & Filtering in SPM12

Demand Forecasting When a product is produced for a market, the demand occurs in the future. The production planning cannot be accomplished unless

The Calculation of G rms

Waveforms and the Speed of Sound

SPEED, VELOCITY, AND ACCELERATION

Frio Formation of the Gulf Coast* By Michael D. Burnett 1 and John P. Castagna 2

Time Domain and Frequency Domain Techniques For Multi Shaker Time Waveform Replication

Functional Data Analysis of MALDI TOF Protein Spectra

EEG COHERENCE AND PHASE DELAYS: COMPARISONS BETWEEN SINGLE REFERENCE, AVERAGE REFERENCE AND CURRENT SOURCE DENSITY

LAB 6: GRAVITATIONAL AND PASSIVE FORCES

Auto-Tuning Using Fourier Coefficients

SIGNAL PROCESSING FOR EFFECTIVE VIBRATION ANALYSIS

Time Series Analysis: Introduction to Signal Processing Concepts. Liam Kilmartin Discipline of Electrical & Electronic Engineering, NUI, Galway

Harmonics and Noise in Photovoltaic (PV) Inverter and the Mitigation Strategies

Measuring Line Edge Roughness: Fluctuations in Uncertainty

Anomaly Detection and Predictive Maintenance

NUMERICAL ANALYSIS OF THE EFFECTS OF WIND ON BUILDING STRUCTURES

The Fourier Analysis Tool in Microsoft Excel

NRZ Bandwidth - HF Cutoff vs. SNR

Climate and Weather. This document explains where we obtain weather and climate data and how we incorporate it into metrics:

SOFTWARE FOR GENERATION OF SPECTRUM COMPATIBLE TIME HISTORY

Analysis of NASA Common Research Model Dynamic Data

5.14 COMPUTATIONAL MODELLING OF AIRFLOW IN URBAN STREET CANYON AND COMPARISON WITH MEASUREMENTS

AP1 Waves. (A) frequency (B) wavelength (C) speed (D) intensity. Answer: (A) and (D) frequency and intensity.

Acceleration Introduction: Objectives: Methods:

2 Session Two - Complex Numbers and Vectors

Activity 8 Drawing Isobars Level 2

Basic Acoustics and Acoustic Filters

LAB 6 - GRAVITATIONAL AND PASSIVE FORCES

Proof of the conservation of momentum and kinetic energy

Univariate and Multivariate Methods PEARSON. Addison Wesley

FTIR Instrumentation

EXPLANATION OF WEATHER ELEMENTS AND VARIABLES FOR THE DAVIS VANTAGE PRO 2 MIDSTREAM WEATHER STATION

The Application of Fourier Analysis to Forecasting the Inbound Call Time Series of a Call Centre

Application. Outline. 3-1 Polynomial Functions 3-2 Finding Rational Zeros of. Polynomial. 3-3 Approximating Real Zeros of.

Linear Programming. Solving LP Models Using MS Excel, 18

Optical Fibres. Introduction. Safety precautions. For your safety. For the safety of the apparatus

The Sonometer The Resonant String and Timbre Change after plucking

Acceleration of Gravity Lab Basic Version

Motion & The Global Positioning System (GPS)

Experimental Wind Turbine Aerodynamics

Time series analysis Matlab tutorial. Joachim Gross

Using Excel (Microsoft Office 2007 Version) for Graphical Analysis of Data

Calibration of the MASS time constant by simulation

Heikki Turtiainen *, Pauli Nylander and Pekka Puura Vaisala Oyj, Helsinki, Finland. Risto Hölttä Vaisala Inc, Boulder, Colorado

Sampling Theorem Notes. Recall: That a time sampled signal is like taking a snap shot or picture of signal periodically.

Temporal variation in snow cover over sea ice in Antarctica using AMSR-E data product

Differential Relations for Fluid Flow. Acceleration field of a fluid. The differential equation of mass conservation

AP1 Oscillations. 1. Which of the following statements about a spring-block oscillator in simple harmonic motion about its equilibrium point is false?

Cell Phone Vibration Experiment

J3.3 AN END-TO-END QUALITY ASSURANCE SYSTEM FOR THE MODERNIZED COOP NETWORK

4.12 Improving wind profiler data recovery in non-uniform precipitation using a modified consensus algorithm

DATA VALIDATION, PROCESSING, AND REPORTING

This document is downloaded from DR-NTU, Nanyang Technological University Library, Singapore.

Function Guide for the Fourier Transformation Package SPIRE-UOL-DOC

The Algorithms of Speech Recognition, Programming and Simulating in MATLAB

A Determination of g, the Acceleration Due to Gravity, from Newton's Laws of Motion

Data Analysis Tools. Tools for Summarizing Data

chapter Introduction to Digital Signal Processing and Digital Filtering 1.1 Introduction 1.2 Historical Perspective

Virtual Met Mast verification report:

Transcription:

Determining the Optimal Sampling Rate of a Sonic Anemometer Based on the Shannon-Nyquist Sampling Theorem Andrew Mahre National Oceanic and Atmospheric Administration Research Experiences for Undergraduates (REU) Intern Norman, Oklahoma Gerry Creager National Oceanic and Atmospheric Administration National Severe Storms Laboratory Forecast Research and Development Division Norman, Oklahoma ABSTRACT While sonic anemometers have been in use for nearly 50 years, there is no literature which investigates the optimal sampling rate for sonic anemometers based on the Shannon-Nyquist Sampling Theorem. In this experiment, wind is treated as a wavelet, so that sonic anemometer data with multiple sampling rates can be analyzed using spectral analysis techniques. From the power spectrum, it is then possible to determine the minimum frequency at which a sonic anemometer must sample in order to maximize the amount of information gathered from the wavelet, while minimizing the amount of data stored. Using data from the Oklahoma Mesonet and data collected on-site, no obvious peak is present in any resulting power spectra that can be definitively be considered viable. This result suggests a nearly random power distribution among frequencies, which is better-suited for averaging and integrating data collection processes. 1. Introduction a. Motivation This experiment was conducted to attempt to establish a set, optimal sampling rate based on the frequency and power content of the wind s signal. Currently, sonic anemometer data is averaged over a two minute time window. This technique, described further in section 1.b, has been carried over from older types of anemometers, and may not be as well suited for non-mechanical anemometers. While a temporal average may give a better estimate of the general wind pattern for a given location, it does not provide as much information for those interested in modeling the boundary layer, who may be interested in more specific details of the wind and its properties. Mahre and Creager, p. 1

b. Background Prior to the invention of the sonic anemometer, anemometers had used mechanical moving parts in their measurement of wind speed. Because of the momentum associated with moving parts of finite mass, the wind speed which is measured at a given point in time with one of these anemometers is not instantaneous; there is some amount of time that it takes the anemometer to accelerate and decelerate. It is then necessary to take a running temporal average to account for this start-up time and slow-down time. However, for sonic anemometers, the wind speeds which are measured are nearly instantaneous measurements of the wind at that particular time. Temporal averaging for sonic anemometers was adopted in part to allow direct comparison between datasets which use mechanical anemometers and those which use sonic anemometers; there is no scientific basis for the 2-minute average on sonic anemometer data. c. Prior Research No studies regarding the optimization of the sampling rate of a sonic anemometer have been conducted to date. Previous papers in the atmospheric sciences have used techniques of wavelet analysis to study surface turbulence during hurricane landfall and to analyze meteorological variables under the winter thunderclouds. General signal processing and spectral analysis techniques were used for this study. 2. Methods a. Data Used For data analysis in this project, multiple datasets were acquired. The primary dataset was from an experiment by the Oklahoma Mesonet on July 30, 2003, using a sonic anemometer (unknown manufacturer) sampling at a rate of 10 Hz. Due to concern about the sampling rate being too fast, decimated versions of the data were also analyzed, at sampling rates of 5 Hz and 2.5 Hz. In addition, daily data was collected and analyzed from a local station of the Oklahoma Mesonet, which samples every 3 seconds. While data analysis on these data was being conducted, data were being collected simultaneously by two Vaisala anemometers on-site, both with a sampling rate of 1 Hz. Looking at data at various sampling rates was helpful, as data which samples at too high of a frequency will introduce noise in addition to the signal; if the sampling rate is too low, then higher frequencies (higher than the Nyquist Frequency) will not be analyzable, and signal aliasing becomes an issue. The concepts of Nyquist Frequency and aliasing will be described further in Section 2.b. b. Spectral Analysis Techniques Before any analysis was conducted, the data were first subjected to a number of quality control checks. The first check was to throw out any data which was flagged as bad by the anemometer. The second check was to conduct a simple sanity check ; if there were any data points that obviously were erroneous, these were discarded as well. The final check was conducted through an algorithm which computed a running average of acceleration for all points, and if the instantaneous acceleration between two points was at or above a certain threshold and significantly differed from the running average, then it was flagged for further evaluation. This helped to identify multiple regions of data where the raw velocity did not immediately appear suspicious, but where it was determined that the instrument could have introduced a bias. For questionable wind speed values in the 10 Hz dataset, the wind speed data was compared against the meteogram for the closest Mesonet stations to the data collection, to check for possible real meteorological conditions causing a sudden change in wind speed. Because of the spatial distance between the data collection site and the Mesonet site, the same downburst might not hit the same location, but the Mesonet data can be used to see what sort of weather was in the area that day. Mahre and Creager, p. 2

Once the data were run through the proper quality control checks, analysis of the data was conducted. To observe the frequencies at which the signal was obtaining most of its power, a power spectrum was plotted for the wind speed. The first step involved processing the speed data through a window function. This function helps to eliminate end effects of the data by weighting data near the center of the time interval being analyzed. End effects can result in spectral leakage, making the peak or peaks of interest more difficult to see. For this case, a Hamming window function was used, given by the equation ( ) 2πn w(n) = α (1 α) cos (1) N 1 where n = index number, going from 0 to N - 1, N = total number of samples, and the standard α = 0.54 level was used. The α level was adjusted to 0.50 for some of the data, as described in Section 3. Figure 1 shows the subtle difference in these two window functions. These windowed data were run through a Fast Fourier Transform (FFT), yielding N complex outputs, with each output corresponding to a different frequency. The first half of the outputs correspond to frequencies up to the Nyquist Frequency, while the 2nd half correspond to frequencies between the negative Nyquist Frequency and 0. The Nyquist Frequency, which is the highest frequency that can be observed by the power spectrum, is given by the equation f Nyquist = 0.5(f s ) (2) where f s is the sampling rate. Only positive values of frequency were used in the analysis, as the negative frequencies should contain the same information as the positive frequencies. Fig. 1. This figure shows the two window functions used; the lower graph is the Hamming, which uses α = 0.54. The upper graph shows the Hann, a subtle variant of the Hamming, which uses α = 0.50. The Hann, unlike the Hamming, sets the datapoints on the ends to 0, rather than to 8% of their value. Because the power spectrum can only see up to the Nyquist Frequency, aliasing becomes a concern. Aliasing is a phenomenon that occurs when the signal s frequency of interest is higher than the Nyquist Frequency. The power from this signal becomes folded back into the visible power Mahre and Creager, p. 3

spectrum, and can look as if the power is coming from other frequencies. In order to ensure that the power spikes that are seen are not being aliased, a higher sampling rate is necessary, which is mentioned in Section 5. The magnitude of each output was obtained by multiplying each output by its complex conjugate and taking the square root. Thus, for an output of a + bi, the magnitude is given by a 2 + b 2. The magnitude represents the amount of the signal s power given by that particular frequency. For analysis, the power spectra were run through a boxcar smoothing function, which attempts to eliminate noise in the spectrum. This function works by computing a running average over a certain number of points; for a 17 point boxcar, as was used here, the i th point in the smoothed graph was computed as the unweighted average of the (i 8) to (i + 8) points. Other smoothing functions (triangular, etc.) could be used, but were found to yield similar graphs as the unweighted boxcar smoothing function. The number of points in the boxcar smoothing function was chosen by trial and error; 17 eliminates a significant portion of the noise, but using more points has little effect on the power spectrum noise level. 3. Results Once the magnitude was calculated, it was plotted against frequency to determine the frequencies at which there are large, sudden increases in power. A spike in power at a given frequency, X, would indicate that the sampling rate must be at least 2X. After analyzing the data from the Mesonet Joint Urban experiment at the full 10 Hz and decimated versions at 5 Hz and 2.5 Hz, as well as daily Mesonet data at 1 Hz and two onsite datasets at 1 Hz, a spike was observed only 3 in the Joint Urban data. The spike in power in the power spectrum came only from a small section of data, which lasted less than an hour, where the wind speed reached values that could possibly be unphysical (up to 62 m/s). Outside of this section of the Joint Urban data, no spikes were observed, as seen in Figure 2. The data were all analyzed in the same manner as described in Section 2b, with the exception of the on-site data. These data were analyzed with a special case of the Hamming window, called the Hann window, which uses α = 0.50 instead of α = 0.54, in order to further negate end effects. For the on-site data, the collection program terminated unexpectedly, shortly after a sharp rise in wind speed. Because it is unclear whether or not the data near the end are good, the Hann window was used instead of the Hamming, in order to avoid having to make this judgment call. Aside from the different treatment of the data near the beginning and end of the dataset, there is little difference between the Hann and Hamming window functions, and all datasets were treated equally otherwise. The power spectrum was plotted for each dataset on both a linear set of axes, and on a log-y axis. The log-y plot takes the log of the power and multiplies by 10 to obtain the power in decibels. 4. Conclusions These preliminary results disprove the initial hypothesis that there is a defined spike in power which would clearly define the optimal sampling rate. While initially a spike was observed in the power spectrum, this contribution to the power came only from when the equipment s heating element was enabled; after further analysis, this spike at 0.1 Hz (and repeating spikes at 0.3, 0.5, and 0.7 Hz) is believed to be an artifact of the instrument, and not the wind. An autocorrelation function, which is a measure of the correlation between neighboring datapoints, also shows this phenomenon. During the meteorological events which caused the increase in wind speed, the heating element on the anemometer was activated during a few short periods of time for an unknown reason. For further analysis purposes, a new dataset was created where wind speed value in the data entries where the heating element was activated Mahre and Creager, p. 4

was replaced with a running average of wind speed values in surrounding data entries; this dataset is generally referred to as being smoothed. The wind speeds for the full, abridged, and smoothed datasets are shown in Figure 3. This method eliminated the spike in power in the power spectrum, leading to the conclusion that the instrument could have produced the power spike. A demonstration of this phenomenon is shown in Figure 4. 5. Future Work While there is no defined spike in the power at a given frequency, an optimal sampling rate can be determined by calculating the frequency at which the signal s power levels off to a constant value. While an initial, qualitative analysis of the power spectra has yielded an approximate value of 0.3 to 0.5 Hz where the power levels off, a more quantitative analysis is necessary to determine the exact sampling rate at which the power levels off. At greater frequencies, the sampling does not contribute more to the signal power, and can add to the noise of the signal. Fig. 2. The top graph represents the power spectrum for the full 10 Hz wind speed dataset, while the bottom dataset has excised 50000 datapoints surrounding a possible meteorological event. Note the presence of power spikes in the top graph, and their absence in the lower graph. Both the x and y axes are linear. Acceleration data was assessed with the same general techniques used for the wind speed, but further analysis must be conducted to determine if there is a spike in a viable acceleration power spectrum. From an initial periodogram, it appears that any spikes in the speed power spectrum match up with peaks in the acceleration power spectrum. It has also been proposed that 10 Hz is not a sufficiently high sampling rate for observing the spike in the power spectrum. For future research on this topic, an anemometer with a sampling rate of 60 Hz would be ideal, as decimated versions of the data could be used if 60 Hz is too high of a sampling rate. Future analyses will also look into the color of Mahre and Creager, p. 5

Fig. 3. The 3 graphs above show the wind speed in m/s from the full dataset, the abridged dataset, and the smoothed dataset. Fig. 4. The top graph represents the power spectrum for the raw, unaltered wind speed data; the bottom is the power spectrum from the set of wind speed values where a running average replaces any datapoint where the instrument s heating element has been enabled. Mahre and Creager, p. 6

noise that is present on the power spectra. Initial work has shown that a red (Brownian) noise phenomenon appears to be present in the power spectrum, which results in high correlation between one data point and its neighbors, which could be the result of oversampling. An autocorrelation function, used in Section 4, shows high correlation between datapoints close together, yielding the belief that red noise may be present. Acknowledgments. I would like to thank my mentor, Gerry Creager, for his help and guidance on this project. I would also like to thank Dr. Chris Fiebrich, for allowing us to use the 2003 10 Hz data, as well as the daily data from the Oklahoma Mesonet. I would like to thank the National Science Foundation for funding the grant (NSF-AGS 1062932). I would like to thank Dr. Kim Elmore and Matt Carney for their assistance in the project, as well as the input from Dr. Michael Richman. REFERENCES Kay, S. M., 1988: Modern Spectral Estimation: Theory and Application. Prentice-Hall. Takeuchi, N., K. I. Narita, and Y. Goto, 1994: Wavelet analysis of meteorological variables under winter thunderclouds over the japan sea. J. Geophys. Res., 99, 10 751 10 757. Wilks, D. S., 2005: Statistical Methods in the Atmospheric Sciences. 2d ed., Academic Press. Zhu, P., J. A. Zhang, and F. J. Masters, 2010: Wavelet analyses of turbulence in the hurricane surface layer during landfalls. J. Atmos. Sci., 67, 3793 3805. Mahre and Creager, p. 7